Skip to content

Commit f782c5f

Browse files
committed
ci: add cpu and gpu tests run
1 parent 6ab461b commit f782c5f

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

.github/workflows/self-hosted.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Self-Hosted
33
on:
44
push:
55
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
68
workflow_dispatch:
79

810
env:
@@ -38,25 +40,27 @@ jobs:
3840
echo "CUDACXX=/usr/local/cuda-${{ matrix.cuda }}/bin/nvcc" >> $GITHUB_ENV
3941
4042
- name: Configure CMake build
41-
run: cmake . -B ${{ env.build_dir }} -DCMAKE_BUILD_TYPE=${{ env.config }} -DCUBOOL_BUILD_TESTS=ON
43+
run: |
44+
cmake . -B ${{ env.build_dir }} -DCMAKE_BUILD_TYPE=${{ env.config }} -DCUBOOL_BUILD_TESTS=ON
4245
4346
- name: Build library sources
4447
working-directory: ${{ env.build_dir }}
45-
run: cmake --build . --target all --verbose -j `nproc`
48+
run: |
49+
cmake --build . --target all --verbose -j `nproc`
4650
4751
test:
4852
name: Test GPU ${{ matrix.gpu }} CUDA ${{ matrix.cuda }}
4953
needs: build
5054
runs-on: self-hosted
51-
env:
52-
unit-test-file: gpu_test_all.log
53-
regression-test-file: gpu_test_regression.log
5455
strategy:
5556
fail-fast: false
5657
matrix:
5758
include:
5859
- gpu: NVIDIA-GeForce-GT-1030
5960
cuda: "12.9"
61+
env:
62+
unit-test-file: gpu_test_all.log
63+
regression-test-file: gpu_test_regression.log
6064

6165
steps:
6266
- name: Run unit-tests

.github/workflows/ubuntu.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Original script from https://github.com/ptheywood/cuda-cmake-github-actions
2-
31
name: Ubuntu
42

53
on:
@@ -15,15 +13,13 @@ env:
1513

1614
jobs:
1715
build:
18-
name: Build ${{ matrix.os }} GCC ${{ matrix.gcc }} CUDA ${{ matrix.cuda }}
16+
name: Build ${{ matrix.os }}
1917
runs-on: ${{ matrix.os }}
2018
strategy:
2119
fail-fast: false
2220
matrix:
2321
include:
2422
- os: ubuntu-22.04
25-
cuda: "11.7"
26-
gcc: 9
2723
env:
2824
config: "Release"
2925

@@ -33,14 +29,17 @@ jobs:
3329
submodules: true
3430

3531
- name: Configure CMake build
36-
run: cmake . -B ${{ env.build_dir }} -DCMAKE_BUILD_TYPE=${{ env.config }} -DCUBOOL_BUILD_TESTS=ON -DCUBOOL_WITH_CUDA=OFF
32+
run: |
33+
cmake . -B ${{ env.build_dir }} -DCMAKE_BUILD_TYPE=${{ env.config }} -DCUBOOL_BUILD_TESTS=ON -DCUBOOL_WITH_CUDA=OFF
3734
3835
- name: Build library sources
3936
working-directory: ${{ env.build_dir }}
40-
run: cmake --build . --target all --verbose -j `nproc`
37+
run: |
38+
cmake --build . --target all --verbose -j `nproc`
4139
4240
- name: Prepare upload binary
43-
run: tar cfz ${{ env.artifact }} ${{ env.build_dir }}
41+
run: |
42+
tar cfz ${{ env.artifact }} ${{ env.build_dir }}
4443
4544
- name: Upload binary
4645
uses: actions/upload-artifact@v4
@@ -71,7 +70,6 @@ jobs:
7170
run: |
7271
tar xzf ${{ env.artifact }}
7372
rm ${{ env.artifact }}
74-
ls
7573
7674
- name: Run unit-tests
7775
working-directory: ${{ env.build_dir }}

0 commit comments

Comments
 (0)