Skip to content

Commit f0232a4

Browse files
committed
CI: merge build and test steps
1 parent 0d6aa87 commit f0232a4

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,11 @@ jobs:
2020
uses: actions/checkout@v4
2121
with:
2222
submodules: recursive
23-
- name: build
23+
- name: build and test
2424
run: |
2525
cmake . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_TEST=ON
2626
cd build
2727
ninja
28-
- name: test
29-
run: |
30-
cd build
3128
test/test.sh
3229
ubuntu-2404:
3330
name: ubuntu-2404
@@ -44,14 +41,11 @@ jobs:
4441
uses: actions/checkout@v4
4542
with:
4643
submodules: recursive
47-
- name: build
44+
- name: build and test
4845
run: |
4946
cmake . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_TEST=ON
5047
cd build
5148
ninja
52-
- name: test
53-
run: |
54-
cd build
5549
test/test.sh
5650
ubuntu-2404-concrete:
5751
name: ubuntu-2404-concrete
@@ -68,14 +62,11 @@ jobs:
6862
uses: actions/checkout@v4
6963
with:
7064
submodules: recursive
71-
- name: build
65+
- name: build and test
7266
run: |
7367
cmake . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DENABLE_TEST=ON -DUSE_CONCRETE=ON
7468
cd build
7569
ninja
76-
- name: test
77-
run: |
78-
cd build
7970
test/test.sh
8071
ubuntu-2404-tutorial:
8172
name: ubuntu-2404-tutorial
@@ -122,12 +113,9 @@ jobs:
122113
uses: actions/checkout@v4
123114
with:
124115
submodules: recursive
125-
- name: build
116+
- name: build and test
126117
run: |
127118
/cmake-binary/bin/cmake . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang -DCMAKE_LINKER_TYPE=LLD -DENABLE_TEST=ON
128119
cd build
129120
ninja
130-
- name: test
131-
run: |
132-
cd build
133121
test/test.sh

0 commit comments

Comments
 (0)