-
Notifications
You must be signed in to change notification settings - Fork 4
Configure CI on self-hosted runner #17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sevenbunu
wants to merge
72
commits into
master
Choose a base branch
from
self-hosted-runner
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 69 commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
ead088f
Compiled cuBool and run tests with CUDA 12.6
mitya-y 443d78d
Temporary removed python package support for compiling rpq algorithm
mitya-y f429420
Fixed cubool tests
mitya-y e434bb1
Implemented applying inverted mask
mitya-y 2f5daac
Fixed mistake in matrix ewise add
mitya-y 99f1d8e
Fixed errors in cmake: incorrect compile options for NVCC
mitya-y b404863
Added option for using matrix addition optimization from nsparse
mitya-y f81ccea
Updated gtest version to last release for compability with last cmake…
mitya-y da6be34
Restored python package build
mitya-y 69d38a6
Removed temporary solutions for preparing PR
mitya-y f304b58
ci: run on self-hosted platform
sevenbunu fb6867b
ci: update versions of packages
sevenbunu 21de87c
ci: comment unnecessary python installation
sevenbunu 4d5e940
ci: left only the installation step
sevenbunu 0c28baf
feat(install_cuda): update the installation script
sevenbunu 444fac7
ci: add source command for installation script startup
sevenbunu 7172915
fix(install_cuda): add correct url
sevenbunu b95f94c
ci: add gcc and g++ installation
sevenbunu 4eb72e7
ci: add cmake config
sevenbunu 93d3c08
fix: add correct version of gcc
sevenbunu 6143a65
fix: correct env variables export
sevenbunu 7e57342
fix: add cudacxx flag to cmake
sevenbunu 1bc1811
fix: add cuda architecture flag in cmake
sevenbunu db88a3f
fix: add cudacxx env variable
sevenbunu 6680369
ci: delete cuda architecture flag
sevenbunu 2cd33f1
ci: add unit and regression tests
sevenbunu 86e5067
ci: change working directory
sevenbunu ea77980
ci: change the way of running scripts
sevenbunu 300a36a
ci: add python working directory toregression tests
sevenbunu 850ab4a
ci: call tests from build directory
sevenbunu 934aa5c
ci: turn on the flag with tests
sevenbunu 749cde1
ci: comment build stage
sevenbunu 8130fed
fix(cmake): uncomment test build
sevenbunu ce82e3c
ci: add job with test in pipeline
sevenbunu 76cebaa
fix: change python version
sevenbunu d7c0088
ci: add cudacxx env variable
sevenbunu aa64a88
ci: add separate pipeline for self-hosted
sevenbunu b4167d9
ci: add correct platform
sevenbunu 071309e
ci: add environment variables in test stage
sevenbunu fc4296d
fix: delete extra quotes
sevenbunu f98ea6c
ci: add error status of pipeline
sevenbunu 374e060
ci: add test script start up
sevenbunu 176bf18
fix: change working directory
sevenbunu 1660aab
ci: change way of test start up
sevenbunu 1e156a8
ci: change tests run
sevenbunu 0101c7e
ci: add check for failed tests
sevenbunu e0ce1cb
ci: add newlines in output
sevenbunu e3416cc
fix: add minimal version of gcc in ubuntu
sevenbunu faf132d
fix: change tty
sevenbunu fbab403
ci: use tee to generate pipeline
sevenbunu 7431fb5
ci: add double brackets
sevenbunu d80229c
test: add test print
sevenbunu 78a1ab7
ci: delete unnecessary print
sevenbunu 2320e78
ci: add tests result artifact
sevenbunu 7d9a039
ci: add check for result as separate step
sevenbunu c547aa0
test: check for workspace variable
sevenbunu 66dead9
ci: add clean up of repo
sevenbunu 63e2384
ci: add tests on cpu
sevenbunu 3a7049f
ci: delete run on test branches
sevenbunu 36a4776
ci: delete run on self-hosted branch
sevenbunu 3ea12e7
ci: delete cpu pipeline
sevenbunu 033366a
test: cleanup in failed pipeline
sevenbunu d85d41a
ci: add needs in clean job
sevenbunu 5b0b33e
ci: uncomment test pipeline
sevenbunu a82a791
test: check cpu version of github runner
sevenbunu aec5bb9
ci: add tests for cpu use case
sevenbunu 412f0a6
ci: delete shell from steps
sevenbunu 6ab461b
ci: add artifact download
sevenbunu f782c5f
ci: add cpu and gpu tests run
sevenbunu db47b5c
fix: corrections after review
sevenbunu 1555949
fix: change names in docs
sevenbunu d4e0432
ci: delete shell option
sevenbunu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,112 @@ | ||
| name: Self-Hosted | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ master ] | ||
| pull_request: | ||
| branches: [ master ] | ||
| workflow_dispatch: | ||
|
|
||
| env: | ||
| build_dir: "build" | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build ${{ matrix.os }} GCC ${{ matrix.gcc }} CUDA ${{ matrix.cuda }} | ||
| runs-on: self-hosted | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - os: ubuntu-24.04 | ||
| cuda: "12.8" | ||
| gcc: 13 | ||
| env: | ||
| config: "Release" | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Set environment variables | ||
| run: | | ||
| echo "CUDA_PATH=/usr/local/cuda-12.8" >> $GITHUB_ENV | ||
| echo "${CUDA_PATH}/bin" >> $GITHUB_PATH | ||
| echo "LD_LIBRARY_PATH=${CUDA_PATH}/lib64:${LD_LIBRARY_PATH}" >> $GITHUB_ENV | ||
| echo "CC=/usr/bin/gcc-${{ matrix.gcc }}" >> $GITHUB_ENV | ||
| echo "CXX=/usr/bin/g++-${{ matrix.gcc }}" >> $GITHUB_ENV | ||
| echo "CUDAHOSTCXX=/usr/bin/g++-${{ matrix.gcc }}" >> $GITHUB_ENV | ||
| echo "CUDACXX=/usr/local/cuda-${{ matrix.cuda }}/bin/nvcc" >> $GITHUB_ENV | ||
| - name: Configure CMake build | ||
| run: | | ||
| cmake . -B ${{ env.build_dir }} -DCMAKE_BUILD_TYPE=${{ env.config }} -DCUBOOL_BUILD_TESTS=ON | ||
| - name: Build library sources | ||
| working-directory: ${{ env.build_dir }} | ||
| run: | | ||
| cmake --build . --target all --verbose -j `nproc` | ||
| test: | ||
| name: Test GPU ${{ matrix.gpu }} CUDA ${{ matrix.cuda }} | ||
| needs: build | ||
| runs-on: self-hosted | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - gpu: NVIDIA-GeForce-GT-1030 | ||
| cuda: "12.9" | ||
| env: | ||
| unit-test-file: gpu_test_all.log | ||
| regression-test-file: gpu_test_regression.log | ||
|
|
||
| steps: | ||
| - name: Run unit-tests | ||
| working-directory: ${{ env.build_dir }} | ||
| run: | | ||
| source scripts/run_tests_all.sh | tee ${{ env.unit-test-file }} | ||
sevenbunu marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - name: Upload unit tests resutls | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ env.unit-test-file }} | ||
| path: ${{ env.build_dir }}/${{ env.unit-test-file }} | ||
|
|
||
| - name: Check for unit tests results | ||
| working-directory: ${{ env.build_dir }} | ||
| run: | | ||
| if grep -q "FAILED" ${{ env.unit-test-file }}; then | ||
| exit 1 | ||
| fi | ||
sevenbunu marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - name: Run regression-tests | ||
| working-directory: ${{ env.build_dir }}/python | ||
| run: | | ||
| source run_tests.sh 2>&1 | tee ${{ env.regression-test-file }} | ||
sevenbunu marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - name: Upload regression tests resutls | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ env.regression-test-file }} | ||
| path: ${{ env.build_dir }}/python/${{ env.regression-test-file }} | ||
|
|
||
| - name: Check for regression tests results | ||
| working-directory: ${{ env.build_dir }}/python | ||
| run: | | ||
| if grep -q "FAILED" ${{ env.regression-test-file }}; then | ||
| exit 1 | ||
| fi | ||
sevenbunu marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| clean: | ||
| name: Cleanup workspace | ||
| needs: test | ||
| if: always() | ||
| runs-on: self-hosted | ||
|
|
||
| steps: | ||
| - name: Cleanup workspace | ||
| run: | | ||
| rm -rf ${{ github.workspace }}/* | ||
| rm -rf ${{ github.workspace }}/.* | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,3 @@ | ||
| [submodule "deps/gtest"] | ||
| path = deps/gtest | ||
| url = https://github.com/google/googletest.git | ||
| [submodule "deps/cub"] | ||
| path = deps/cub | ||
| url = https://github.com/NVIDIA/cub.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.