Skip to content

Commit 98fd16b

Browse files
committed
ci: fix it
1 parent 04fc98e commit 98fd16b

File tree

2 files changed

+12
-33
lines changed

2 files changed

+12
-33
lines changed

.github/workflows/cmake-tag.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ jobs:
1515
strategy:
1616
fail-fast: true
1717
matrix:
18-
os: [ubuntu-24.04, windows-latest, macos-12]
18+
os: [ubuntu-latest, windows-latest, macos-latest]
1919
include:
20-
- os: ubuntu-24.04
20+
- os: ubuntu-latest
2121
cmake: /usr/bin/env CC=gcc-14 CXX=g++-14 cmake
22-
- os: macos-12
23-
cmake: /usr/bin/env CC="$(brew --prefix llvm@17)/bin/clang" CXX="$(brew --prefix llvm@17)/bin/clang++" cmake
2422
- os: windows-latest
2523
cmake: .\.github\workflows\build-windows.bat cmake
24+
- os: macos-latest
25+
cmake: /usr/bin/env CC="$(brew --prefix llvm)/bin/clang" CXX="$(brew --prefix llvm)/bin/clang++" cmake
2626

2727
steps:
2828
- uses: actions/checkout@v3
@@ -32,7 +32,7 @@ jobs:
3232
- uses: abdes/gha-setup-ninja@master
3333
with:
3434
version: 1.11.1
35-
if: matrix.os != 'ubuntu-24.04'
35+
if: matrix.os != 'ubuntu-latest'
3636

3737
- name: Install Linux dependencies
3838
run: |
@@ -41,12 +41,12 @@ jobs:
4141
sudo apt install g++-14 gdb ninja-build libbenchmark-dev
4242
sudo apt -q install libgl1-mesa-dri libgl-dev libglx-dev xorg-dev xvfb libopencv-dev
4343
sudo apt -q install libsdl2-dev
44-
if: matrix.os == 'ubuntu-24.04'
44+
if: matrix.os == 'ubuntu-latest'
4545

4646
- name: Install OSX dependencies
4747
run: |
48-
brew install SDL2 llvm@17
49-
if: matrix.os == 'macos-12'
48+
brew install SDL2 llvm lld
49+
if: matrix.os == 'macos-latest'
5050

5151
- name: Configure
5252
run: ${{matrix.cmake}} -G "Ninja" -S ${{github.workspace}}/ -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
@@ -62,7 +62,7 @@ jobs:
6262
set -e
6363
xvfb-run gdb -q -batch -x ../../.github/gdbscript.py --args bin/floormat-test
6464
xvfb-run gdb -q -batch -x ../../.github/gdbscript.py --args bin/floormat-benchmark
65-
if: matrix.os == 'ubuntu-24.04'
65+
if: matrix.os == 'ubuntu-latest'
6666

6767
# - name: Upload build
6868
# uses: actions/[email protected]

.github/workflows/cmake.yml

+3-24
Original file line numberDiff line numberDiff line change
@@ -15,39 +15,24 @@ jobs:
1515
strategy:
1616
fail-fast: true
1717
matrix:
18-
#os: [ubuntu-24.04, windows-latest, macos-12]
19-
os: [ubuntu-24.04]
18+
os: [ubuntu-latest]
2019
include:
21-
- os: ubuntu-24.04
20+
- os: ubuntu-latest
2221
cmake: /usr/bin/env CC=gcc-14 CXX=g++-14 cmake
23-
#- os: macos-12
24-
# cmake: /usr/bin/env CC="$(brew --prefix llvm@16)/bin/clang" CXX="$(brew --prefix llvm@16)/bin/clang++" cmake
25-
#- os: windows-latest
26-
# cmake: .\.github\workflows\build-windows.bat cmake
2722

2823
steps:
2924
- uses: actions/checkout@v3
3025
with:
3126
submodules: recursive
3227

33-
- uses: abdes/gha-setup-ninja@master
34-
with:
35-
version: 1.11.1
36-
if: matrix.os != 'ubuntu-24.04'
37-
3828
- name: Install Linux dependencies
3929
run: |
4030
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
4131
sudo apt -q=2 update
4232
sudo apt install g++-14 gdb ninja-build libbenchmark-dev
4333
sudo apt -q install libgl1-mesa-dri libgl-dev libglx-dev xorg-dev xvfb libopencv-dev
4434
sudo apt -q install libsdl2-dev
45-
if: matrix.os == 'ubuntu-24.04'
46-
47-
- name: Install OSX dependencies
48-
run: |
49-
brew install SDL2 llvm@16
50-
if: matrix.os == 'macos-12'
35+
if: matrix.os == 'ubuntu-latest'
5136

5237
- name: Configure
5338
run: ${{matrix.cmake}} -G "Ninja" -S ${{github.workspace}}/ -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
@@ -64,9 +49,3 @@ jobs:
6449
xvfb-run gdb -q -batch -x ../../.github/gdbscript.py --args bin/floormat-test
6550
xvfb-run gdb -q -batch -x ../../.github/gdbscript.py --args bin/floormat-benchmark
6651
if: matrix.os == 'ubuntu-24.04'
67-
68-
# - name: Upload build
69-
# uses: actions/[email protected]
70-
# with:
71-
# name: buildoutput
72-
# path: ${{github.workspace}}/build/

0 commit comments

Comments
 (0)