mirror of
https://github.com/mehah/otclient
synced 2026-08-15 16:29:06 -04:00
fix: ubuntu gha build
This commit is contained in:
parent
ea1409f693
commit
88ac9bb280
2 changed files with 8 additions and 7 deletions
14
.github/workflows/build-ubuntu.yml
vendored
14
.github/workflows/build-ubuntu.yml
vendored
|
|
@ -19,13 +19,13 @@ jobs:
|
|||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-20.04, ubuntu-22.04]
|
||||
os: [ubuntu-22.04, ubuntu-24.04]
|
||||
buildtype: [linux-release, linux-debug]
|
||||
include:
|
||||
- os: ubuntu-20.04
|
||||
triplet: x64-linux
|
||||
- os: ubuntu-22.04
|
||||
triplet: x64-linux
|
||||
- os: ubuntu-24.04
|
||||
triplet: x64-linux
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
|
|
@ -35,11 +35,11 @@ jobs:
|
|||
run: >
|
||||
sudo apt-get update && sudo apt-get install ccache libglew-dev libx11-dev linux-headers-$(uname -r)
|
||||
|
||||
- name: Switch to gcc-11
|
||||
- name: Switch to gcc-12
|
||||
run: |
|
||||
sudo apt install gcc-11 g++-11
|
||||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-12
|
||||
sudo update-alternatives --set gcc /usr/bin/gcc-11
|
||||
sudo apt install gcc-12 g++-12
|
||||
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 100 --slave /usr/bin/g++ g++ /usr/bin/g++-12 --slave /usr/bin/gcov gcov /usr/bin/gcov-12
|
||||
sudo update-alternatives --set gcc /usr/bin/gcc-12
|
||||
|
||||
- name: Restore artifacts and install vcpkg
|
||||
id: vcpkg-step
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue