Skip to content

Commit 9aa0fc5

Browse files
Adapt github actions
1 parent c35213c commit 9aa0fc5

File tree

2 files changed

+9
-23
lines changed

2 files changed

+9
-23
lines changed

.github/workflows/documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ jobs:
2323
uses: actions/checkout@v4
2424
- name: Build Docs
2525
run: |
26-
cmake -B ${{github.workspace}}/build
27-
cmake --build ${{github.workspace}}/build/docs --target docs
26+
cmake -B ${{github.workspace}}/build -DBUILD_DOCS=ON
27+
cmake --build ${{github.workspace}}/build
2828
mv ${{github.workspace}}/build/docs/html /root/
2929
- name: Upload Artifact
3030
uses: actions/upload-artifact@v4

.github/workflows/unit-tests.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,21 @@ jobs:
1313
container: registry.cern.ch/ngt-wp1.7/wp1.7-soa-wrapper@sha256:16432eae6635379637e67c4cc00334c46b6dce845b83da7e75fb754d24266897
1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: cpu_gcc
17-
env:
18-
CXX: g++
19-
CC: gcc
20-
TEST_DIR: tests/cpu
21-
run: &build-and-test |
22-
cmake -B ${{github.workspace}}/build/ -DCMAKE_COMPILE_WARNING_AS_ERROR=ON
23-
cmake --build ${{github.workspace}}/build/${TEST_DIR}
24-
ctest --test-dir ${{github.workspace}}/build/${TEST_DIR} --output-on-failure
25-
rm -rf ${{github.workspace}}/build
26-
- name: cpu_clang
27-
env:
28-
CXX: clang++
29-
CC: clang
30-
TEST_DIR: tests/cpu
31-
run: *build-and-test
32-
- name: gpu_gcc
16+
- name: gcc
3317
env:
3418
CXX: g++
3519
CC: gcc
3620
NVCC_CCBIN: gcc
3721
CUDACXX: nvcc
38-
TEST_DIR: tests/gpu
39-
run: *build-and-test
40-
- name: gpu_clang
22+
run: &build-and-test |
23+
cmake -B ${{github.workspace}}/build/ -DBUILD_TESTING=ON -DCMAKE_COMPILE_WARNING_AS_ERROR=ON
24+
cmake --build ${{github.workspace}}/build/
25+
ctest --test-dir ${{github.workspace}}/build/tests --output-on-failure
26+
rm -rf ${{github.workspace}}/build
27+
- name: clang
4128
env:
4229
CXX: clang++
4330
CC: clang
4431
NVCC_CCBIN: clang
4532
CUDACXX: nvcc
46-
TEST_DIR: tests/gpu
4733
run: *build-and-test

0 commit comments

Comments
 (0)