-
Notifications
You must be signed in to change notification settings - Fork 794
[CI] Add precompiled CTS tests to sycl_prebuilt_tests image #20332
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
base: sycl
Are you sure you want to change the base?
Changes from all commits
7c9de76
026ba62
7fb4a3e
96d5ea7
ad2da94
3453107
874bc9d
2c0f0e6
64d2eae
3f27ea4
7f6bcc3
89faa52
d2d243f
fccecfb
6d9717b
e74bc2c
658294f
d424a37
0ae7546
76c0642
fcfb2e9
ec1d4d5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,11 +9,13 @@ inputs: | |
| cts_testing_mode: | ||
| required: true | ||
| sycl_cts_artifact: | ||
| require: false | ||
| required: false | ||
| target_devices: | ||
| required: true | ||
| retention-days: | ||
| required: false | ||
| sycl_compiler: | ||
| required: false | ||
|
|
||
| runs: | ||
| using: "composite" | ||
|
|
@@ -56,7 +58,7 @@ runs: | |
| echo "::endgroup::" | ||
| fi | ||
|
|
||
| cmake -GNinja -B./build-cts -S./khronos_sycl_cts -DCMAKE_CXX_COMPILER=$(which clang++) \ | ||
| cmake -GNinja -B./build-cts -S./khronos_sycl_cts -DCMAKE_CXX_COMPILER="${{ inputs.sycl_compiler || '$(which clang++)'}}" \ | ||
| -DSYCL_IMPLEMENTATION=DPCPP \ | ||
| -DSYCL_CTS_EXCLUDE_TEST_CATEGORIES="$cts_exclude_filter" \ | ||
| -DSYCL_CTS_ENABLE_OPENCL_INTEROP_TESTS=OFF \ | ||
|
|
@@ -81,18 +83,37 @@ runs: | |
| retention-days: ${{ inputs.retention-days }} | ||
|
|
||
| - name: Download SYCL-CTS binaries | ||
| if: inputs.cts_testing_mode == 'run-only' | ||
| if: | | ||
| inputs.cts_testing_mode == 'run-only' | ||
| && !(inputs.sycl_cts_artifact == 'in-container' | ||
| || inputs.sycl_cts_artifact == '' | ||
| || github.event_name == 'workflow_dispatch') | ||
| uses: actions/download-artifact@v4 | ||
| with: | ||
| name: ${{ inputs.sycl_cts_artifact }} | ||
|
|
||
| - name: Extract SYCL-CTS binaries | ||
| if: inputs.cts_testing_mode == 'run-only' | ||
| if: | | ||
| inputs.cts_testing_mode == 'run-only' | ||
| && !(inputs.sycl_cts_artifact == 'in-container' | ||
| || inputs.sycl_cts_artifact == '' | ||
| || github.event_name == 'workflow_dispatch') | ||
|
Comment on lines
+96
to
+100
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is actually broken in
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #20580 fixes it in trunk, this PR will need to be updated. |
||
| shell: bash | ||
| run: | | ||
| mkdir -p build-cts/bin | ||
| tar -I 'zstd' -xf sycl_cts_bin.tar.zst -C build-cts/bin | ||
|
|
||
| - name: Extract CTS tests from container image | ||
| if: | | ||
| inputs.cts_testing_mode == 'run-only' | ||
| && (inputs.sycl_cts_artifact == 'in-container' | ||
| || inputs.sycl_cts_artifact == '' | ||
| || github.event_name == 'workflow_dispatch') | ||
| shell: bash | ||
| run: | | ||
| mkdir -p build-cts/bin | ||
| tar -I 'zstd' -xf /sycl-prebuilt/sycl_cts_bin.tar.zst -C build-cts/bin | ||
|
|
||
| - name: SYCL CTS List devices | ||
| # Proceed with execution even if the 'build' step did not succeed. | ||
| if: (always() && !cancelled()) && inputs.cts_testing_mode != 'build-only' | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.