File tree Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Expand file tree Collapse file tree 2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,8 @@ name: Self-Hosted
33on :
44 push :
55 branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
68 workflow_dispatch :
79
810env :
@@ -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
Original file line number Diff line number Diff line change 1- # Original script from https://github.com/ptheywood/cuda-cmake-github-actions
2-
31name : Ubuntu
42
53on :
1513
1614jobs :
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
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 }}
You can’t perform that action at this time.
0 commit comments