Skip to content

Commit 440ebbb

Browse files
committed
πŸ‘·β€β™€οΈ Use ninja multi-config
1 parent 5ce5d33 commit 440ebbb

3 files changed

Lines changed: 14 additions & 24 deletions

File tree

β€Ž.github/workflows/macosx.ymlβ€Ž

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,15 @@ jobs:
1717

1818
- name: configure
1919
run: |
20-
cmake -B build/debug -G Ninja -D ZTD_ENCODING_TABLES_TESTS=ON -D ZTD_ENCODING_TABLES_EXAMPLES=ON -D ZTD_ENCODING_TABLES_GENERATE_SINGLE=ON
21-
cmake -B build/release -G Ninja -D ZTD_ENCODING_TABLES_TESTS=ON -D ZTD_ENCODING_TABLES_EXAMPLES=ON -D ZTD_ENCODING_TABLES_GENERATE_SINGLE=ON
20+
cmake -B build -G Ninja -D ZTD_ENCODING_TABLES_TESTS=ON -D ZTD_ENCODING_TABLES_EXAMPLES=ON -D ZTD_ENCODING_TABLES_GENERATE_SINGLE=ON
2221
2322
- name: build
2423
run: |
25-
cmake --build build/debug --config Debug
26-
cmake --build build/release --config Release
24+
cmake --build build --config Debug
25+
cmake --build build --config Release
2726
2827
- name: test
2928
run: |
30-
cd build/debug
29+
cd build
3130
ctest --build-config Debug
32-
cd ../..
33-
cd build/release
3431
ctest --build-config Release
35-
cd ../..

β€Ž.github/workflows/ubuntu.ymlβ€Ž

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,15 @@ jobs:
1717

1818
- name: configure
1919
run: |
20-
cmake -B build/debug -G Ninja -D ZTD_ENCODING_TABLES_TESTS=ON -D ZTD_ENCODING_TABLES_EXAMPLES=ON -D ZTD_ENCODING_TABLES_GENERATE_SINGLE=ON
21-
cmake -B build/release -G Ninja -D ZTD_ENCODING_TABLES_TESTS=ON -D ZTD_ENCODING_TABLES_EXAMPLES=ON -D ZTD_ENCODING_TABLES_GENERATE_SINGLE=ON
20+
cmake -B build -G Ninja -D ZTD_ENCODING_TABLES_TESTS=ON -D ZTD_ENCODING_TABLES_EXAMPLES=ON -D ZTD_ENCODING_TABLES_GENERATE_SINGLE=ON
2221
2322
- name: build
2423
run: |
25-
cmake --build build/debug --config Debug
26-
cmake --build build/release --config Release
24+
cmake --build build --config Debug
25+
cmake --build build --config Release
2726
2827
- name: test
2928
run: |
30-
cd build/debug
29+
cd build
3130
ctest --build-config Debug
32-
cd ../..
33-
cd build/release
3431
ctest --build-config Release
35-
cd ../..

β€Ž.github/workflows/windows.ymlβ€Ž

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,20 @@ jobs:
1414
- uses: actions/checkout@v2
1515
with:
1616
submodules: recursive
17+
- uses: seanmiddleditch/gha-setup-ninja@master
18+
- uses: humbletim/vsdevenv-shell@main
1719

1820
- name: configure
1921
run: |
20-
cmake -B build/debug -G Ninja "-DCMAKE_CXX_FLAGS_INIT=/Wv:18" "-DCMAKE_C_FLAGS_INIT=/Wv:18" -D ZTD_ENCODING_TABLES_TESTS=ON -D ZTD_ENCODING_TABLES_EXAMPLES=ON -D ZTD_ENCODING_TABLES_GENERATE_SINGLE=ON
21-
cmake -B build/release -G Ninja "-DCMAKE_CXX_FLAGS_INIT=/Wv:18" "-DCMAKE_C_FLAGS_INIT=/Wv:18" -D ZTD_ENCODING_TABLES_TESTS=ON -D ZTD_ENCODING_TABLES_EXAMPLES=ON -D ZTD_ENCODING_TABLES_GENERATE_SINGLE=ON
22+
cmake -B build "-DCMAKE_CXX_FLAGS_INIT=/Wv:18" "-DCMAKE_C_FLAGS_INIT=/Wv:18" -D ZTD_ENCODING_TABLES_TESTS=ON -D ZTD_ENCODING_TABLES_EXAMPLES=ON -D ZTD_ENCODING_TABLES_GENERATE_SINGLE=ON
2223
2324
- name: build
2425
run: |
25-
cmake --build build/debug --config Debug
26-
cmake --build build/release --config Release
26+
cmake --build build --config Debug
27+
cmake --build build --config Release
2728
2829
- name: test
2930
run: |
30-
cd build/debug
31+
cd build
3132
ctest --build-config Debug
32-
cd ../..
33-
cd build/release
3433
ctest --build-config Release
35-
cd ../..

0 commit comments

Comments
Β (0)