-
Notifications
You must be signed in to change notification settings - Fork 12
Configure CI on self-hosted runner #236
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
Merged
Merged
Changes from 12 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
57cfaaf
ci: add ci for self hosted runner
sevenbunu ef82c02
style: changes accoeding to clang formatter
sevenbunu 51d637b
test: add intel gpu
sevenbunu 18fe4fb
gh-235: add pocl cpu support
vkutuev 08c8501
fix: change vendor id for pocl
sevenbunu c487ce1
ref: changes in env variable name
sevenbunu 580e2cd
style: changes according to clang formatter
sevenbunu c880722
test: run in debug mode
sevenbunu 17ae0ed
ci: run all in debug mode
sevenbunu c17a6f6
ci: delete trigger branch
sevenbunu d7e6138
ref: change name of job in ubuntu
sevenbunu 81fc94b
fix: add correct job name
sevenbunu 96d165c
ci: run github hosted runners in release mode
sevenbunu a7659f1
style: add newlines in the end of files
sevenbunu 57197d7
fix: change type to cpu
sevenbunu 4e0e814
fix: change number
sevenbunu f0eed1c
ci: add check for failed in all cases
sevenbunu 1c9cee0
Revert "gh-235: add pocl cpu support"
sevenbunu 1ab5359
fix: full remove pocl support
sevenbunu adc56e8
style: add newlines in the end of files
sevenbunu 1b39efe
style: add newline in opencl merge
sevenbunu e81f9a4
fix: change platforms to devices
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| name: Self-Hosted | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - release | ||
| - pre-release | ||
| paths: | ||
| - '.github/**' | ||
| - 'deps/**' | ||
| - 'include/**' | ||
| - 'src/**' | ||
| - 'tests/**' | ||
| - 'examples/**' | ||
| - 'python/**' | ||
| - '.gitignore' | ||
| - '.gitmodules' | ||
| - 'CMakeLists.txt' | ||
| pull_request: | ||
| branches: [ main ] | ||
|
|
||
| env: | ||
| build-dir: "build" | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build ${{ matrix.os }} | ||
| runs-on: self-hosted | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - os: ubuntu-24.04 | ||
| env: | ||
| config: "Debug" | ||
| nt: "4" | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| with: | ||
| submodules: true | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Configure CMake | ||
| run: | | ||
| cmake . -G Ninja \ | ||
| -B ${{ env.build-dir }} \ | ||
| -DCMAKE_BUILD_TYPE=${{ env.config }} \ | ||
| -DSPLA_BUILD_TESTS=ON | ||
| - name: Build library sources | ||
| run: | | ||
| cmake --build ${{ env.build-dir }} \ | ||
| --target all \ | ||
| --verbose \ | ||
| -j ${{ env.nt }} | ||
| test: | ||
| name: Test GPU ${{ matrix.gpu }} | ||
| needs: build | ||
| runs-on: self-hosted | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - gpu: NVIDIA-GeForce-GT-1030 | ||
| platform: 2 | ||
| device: 0 | ||
| - gpu: AMD-Radeon-RX-6750-XT | ||
| platform: 1 | ||
| device: 0 | ||
| - gpu: Intel-Core-i7-4790 | ||
| platform: 0 | ||
| device: 0 | ||
|
|
||
| env: | ||
| test-file: ${{ matrix.gpu }}_tests.log | ||
|
|
||
| steps: | ||
| - name: Run tests | ||
| run: | | ||
| python3 ./run_tests.py --build-dir=${{ env.build-dir }} \ | ||
| --platform=${{ matrix.platform }} \ | ||
| --device=${{ matrix.device }} \ | ||
| | tee ${{ env.test-file }} | ||
| - name: Upload tests resutls | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: ${{ env.test-file }} | ||
| path: ${{ env.test-file }} | ||
|
|
||
| - name: Check for tests results | ||
| run: | | ||
| ! grep -q "FAILED" ${{ env.test-file }} | ||
| 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 }}/.* | ||
sevenbunu marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
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.