Skip to content

Commit bd2624c

Browse files
authored
Update GitHub Actions workflow for build process
1 parent 86d962d commit bd2624c

1 file changed

Lines changed: 18 additions & 14 deletions

File tree

.github/workflows/build.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,37 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
os: [windows-2019, ubuntu-20.04, macos-11]
13+
os: [windows-2022, ubuntu-24.04, macos-14]
1414
env:
1515
BUILD_TYPE: Release
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v2
18+
uses: actions/checkout@v4
1919

20-
- name: Install ninja-build tool
21-
uses: seanmiddleditch/gha-setup-ninja@v3
20+
- name: Install Ninja (Linux)
21+
if: ${{ runner.os == 'Linux' }}
22+
run: |
23+
sudo apt-get update
24+
sudo apt-get install -y ninja-build
2225
23-
- name: Enable Developer Command Prompt
26+
- name: Install Ninja (macOS)
27+
if: ${{ runner.os == 'macOS' }}
28+
run: brew install ninja
29+
30+
- name: Install Ninja (Windows)
2431
if: ${{ runner.os == 'Windows' }}
25-
uses: ilammy/msvc-dev-cmd@v1.7.0
32+
run: choco install ninja -y
2633

27-
- name: Set up GCC
28-
if: ${{ runner.os == 'Linux' }}
29-
uses: egor-tensin/setup-gcc@v1
30-
with:
31-
version: 11
34+
- name: Enable Developer Command Prompt
35+
if: ${{ runner.os == 'Windows' }}
36+
uses: ilammy/msvc-dev-cmd@v1
3237

3338
- name: Build
3439
run: |
35-
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DVTIL_BUILD_TESTS=ON
40+
cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DVTIL_BUILD_TESTS=ON
3641
cmake --build build --config ${{ env.BUILD_TYPE }} --parallel
3742
3843
- name: Test
3944
run: |
4045
ctest --version
41-
cd build
42-
ctest . -C ${{ env.BUILD_TYPE }} --verbose
46+
ctest --test-dir build -C ${{ env.BUILD_TYPE }} --output-on-failure --verbose

0 commit comments

Comments
 (0)