1- # Original script from https://github.com/ptheywood/cuda-cmake-github-actions
2-
31name : Self-Hosted
42
53on :
@@ -26,77 +24,81 @@ jobs:
2624 gcc : 13
2725
2826 steps :
29- - uses : actions/checkout@v4
30- with :
31- submodules : recursive
32-
33- - name : Set environment variables
27+ - name : Cleanup workspace
3428 run : |
35- echo "CUDA_PATH=/usr/local/cuda-12.8" >> $GITHUB_ENV
36- echo "${CUDA_PATH}/bin" >> $GITHUB_PATH
37- echo "LD_LIBRARY_PATH=${CUDA_PATH}/lib64:${LD_LIBRARY_PATH}" >> $GITHUB_ENV
38- echo "СС=/usr/bin/gcc-${{ matrix.gcc }}" >> $GITHUB_ENV
39- echo "CXX=/usr/bin/g++-${{ matrix.gcc }}" >> $GITHUB_ENV
40- echo "CUDAHOSTCXX=/usr/bin/g++-${{ matrix.gcc }}" >> $GITHUB_ENV
41- echo "CUDACXX=/usr/local/cuda-${{ matrix.cuda }}/bin/nvcc" >> $GITHUB_ENV
29+ echo ${{ github.workspace }}
4230
43- - name : Configure CMake build
44- run : cmake . -B ${{ env.build_dir }} -DCMAKE_BUILD_TYPE=${{ env.config }} -DCUBOOL_BUILD_TESTS=ON
31+ # - uses: actions/checkout@v4
32+ # with:
33+ # submodules: recursive
4534
46- - name : Build library sources
47- working-directory : ${{ env.build_dir }}
48- run : cmake --build . --target all --verbose -j `nproc`
35+ # - name: Set environment variables
36+ # run: |
37+ # echo "CUDA_PATH=/usr/local/cuda-12.8" >> $GITHUB_ENV
38+ # echo "${CUDA_PATH}/bin" >> $GITHUB_PATH
39+ # echo "LD_LIBRARY_PATH=${CUDA_PATH}/lib64:${LD_LIBRARY_PATH}" >> $GITHUB_ENV
40+ # echo "CC=/usr/bin/gcc-${{ matrix.gcc }}" >> $GITHUB_ENV
41+ # echo "CXX=/usr/bin/g++-${{ matrix.gcc }}" >> $GITHUB_ENV
42+ # echo "CUDAHOSTCXX=/usr/bin/g++-${{ matrix.gcc }}" >> $GITHUB_ENV
43+ # echo "CUDACXX=/usr/local/cuda-${{ matrix.cuda }}/bin/nvcc" >> $GITHUB_ENV
4944
50- test :
51- name : Test ${{ matrix.os }} GCC ${{ matrix.gcc }} CUDA ${{ matrix.cuda }}
52- needs : build
53- runs-on : self-hosted
54- env :
55- unit-test-file : test_fallback.txt
56- regression-test-file : test_regression.txt
57- strategy :
58- fail-fast : false
59- matrix :
60- include :
61- - os : ubuntu-24.04
62- cuda : " 12.8"
63- gcc : 13
45+ # - name: Configure CMake build
46+ # run: cmake . -B ${{ env.build_dir }} -DCMAKE_BUILD_TYPE=${{ env.config }} -DCUBOOL_BUILD_TESTS=ON
6447
65- steps :
66- - name : Run unit-tests
67- working-directory : ${{ env.build_dir }}
68- run : |
69- chmod +x scripts/run_tests_fallback.sh
70- ./scripts/run_tests_fallback.sh | tee ${{ env.unit-test-file }}
48+ # - name: Build library sources
49+ # working-directory: ${{ env.build_dir }}
50+ # run: cmake --build . --target all --verbose -j `nproc`
51+
52+ # test:
53+ # name: Test ${{ matrix.os }} GCC ${{ matrix.gcc }} CUDA ${{ matrix.cuda }}
54+ # needs: build
55+ # runs-on: self-hosted
56+ # env:
57+ # unit-test-file: test_fallback.txt
58+ # regression-test-file: test_regression.txt
59+ # strategy:
60+ # fail-fast: false
61+ # matrix:
62+ # include:
63+ # - os: ubuntu-24.04
64+ # cuda: "12.8"
65+ # gcc: 13
7166
72- - name : Upload unit tests resutls
73- uses : actions/upload-artifact@v4
74- with :
75- name : ${{ env.unit-test-file }}
76- path : ${{ env.build_dir }}/${{ env.unit-test-file }}
67+ # steps:
68+ # - name: Run unit-tests
69+ # working-directory: ${{ env.build_dir }}
70+ # run: |
71+ # chmod +x scripts/run_tests_fallback.sh
72+ # ./scripts/run_tests_fallback.sh | tee ${{ env.unit-test-file }}
73+
74+ # - name: Upload unit tests resutls
75+ # uses: actions/upload-artifact@v4
76+ # with:
77+ # name: ${{ env.unit-test-file }}
78+ # path: ${{ env.build_dir }}/${{ env.unit-test-file }}
7779
78- - name : Check for unit tests results
79- working-directory : ${{ env.build_dir }}
80- run : |
81- if cat ${{ env.unit-test-file }} | grep -q "FAILED"; then
82- exit 1
83- fi
80+ # - name: Check for unit tests results
81+ # working-directory: ${{ env.build_dir }}
82+ # run: |
83+ # if cat ${{ env.unit-test-file }} | grep -q "FAILED"; then
84+ # exit 1
85+ # fi
8486
85- - name : Run regression-tests
86- working-directory : ${{ env.build_dir }}/python
87- run : |
88- chmod +x run_tests.sh
89- ./run_tests.sh | tee ${{ env.regression-test-file }}
87+ # - name: Run regression-tests
88+ # working-directory: ${{ env.build_dir }}/python
89+ # run: |
90+ # chmod +x run_tests.sh
91+ # ./run_tests.sh | tee ${{ env.regression-test-file }}
9092
91- - name : Upload regression tests resutls
92- uses : actions/upload-artifact@v4
93- with :
94- name : ${{ env.regression-test-file }}
95- path : ${{ env.build_dir }}/python/${{ env.regression-test-file }}
93+ # - name: Upload regression tests resutls
94+ # uses: actions/upload-artifact@v4
95+ # with:
96+ # name: ${{ env.regression-test-file }}
97+ # path: ${{ env.build_dir }}/python/${{ env.regression-test-file }}
9698
97- - name : Check for regression tests results
98- working-directory : ${{ env.build_dir }}/python
99- run : |
100- if cat ${{ env.regression-test-file }} | grep -q "FAILED"; then
101- exit 1
102- fi
99+ # - name: Check for regression tests results
100+ # working-directory: ${{ env.build_dir }}/python
101+ # run: |
102+ # if cat ${{ env.regression-test-file }} | grep -q "FAILED"; then
103+ # exit 1
104+ # fi
0 commit comments