File tree 1 file changed +10
-19
lines changed
1 file changed +10
-19
lines changed Original file line number Diff line number Diff line change 12
12
jobs :
13
13
tests :
14
14
runs-on : ubuntu-latest
15
+
16
+ strategy :
17
+ matrix :
18
+ build_type : [Release, Debug]
19
+
15
20
steps :
16
21
- name : Checkout
17
22
uses : actions/checkout@v3
@@ -39,30 +44,16 @@ jobs:
39
44
wget https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-linux.zip
40
45
yes | sudo unzip ninja-linux.zip -d /usr/local/bin
41
46
42
- - name : Build Debug
47
+ - name : Build ${{ matrix.build_type }}
43
48
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
46
51
env :
47
52
CC : /usr/bin/clang-17
48
53
CXX : /usr/bin/clang++-17
49
54
LDFLAGS : -L/usr/lib/llvm-17/lib
50
55
CPPFLAGS : -stdlib=libc++
51
56
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 }}
67
58
run : |
68
- cmake --build build_debug --target test
59
+ cmake --build build --target test
You can’t perform that action at this time.
0 commit comments