Skip to content

Commit 1a562ab

Browse files
committed
Update test-ubuntu
1 parent 008e80a commit 1a562ab

File tree

1 file changed

+10
-19
lines changed

1 file changed

+10
-19
lines changed

.github/workflows/test-ubuntu.yml

+10-19
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ on:
1212
jobs:
1313
tests:
1414
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
build_type: [Release, Debug]
19+
1520
steps:
1621
- name: Checkout
1722
uses: actions/checkout@v3
@@ -39,30 +44,16 @@ jobs:
3944
wget https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-linux.zip
4045
yes | sudo unzip ninja-linux.zip -d /usr/local/bin
4146
42-
- name: Build Debug
47+
- name: Build ${{ matrix.build_type }}
4348
run: |
44-
cmake -B build_debug -S . -DARGO_TESTS_ENABLE=true -GNinja -DCMAKE_BUILD_TYPE=Debug
45-
cmake --build build_debug
49+
cmake -B build -S . -DARGO_TESTS_ENABLE=true -GNinja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
50+
cmake --build build
4651
env:
4752
CC: /usr/bin/clang-17
4853
CXX: /usr/bin/clang++-17
4954
LDFLAGS: -L/usr/lib/llvm-17/lib
5055
CPPFLAGS: -stdlib=libc++
5156

52-
- name: Build Release
53-
run: |
54-
cmake -B build_release -S . -DARGO_TESTS_ENABLE=true -GNinja -DCMAKE_BUILD_TYPE=Release
55-
cmake --build build_release
56-
env:
57-
CC: /usr/bin/clang-17
58-
CXX: /usr/bin/clang++-17
59-
LDFLAGS: -L/usr/lib/llvm-17/lib
60-
CPPFLAGS: -stdlib=libc++
61-
62-
- name: Test Release
63-
run: |
64-
cmake --build build_release --target test
65-
66-
- name: Test Debug
57+
- name: Test ${{ matrix.build_type }}
6758
run: |
68-
cmake --build build_debug --target test
59+
cmake --build build --target test

0 commit comments

Comments
 (0)