Skip to content

Commit 97cba55

Browse files
authored
Makes PTI job run always (#26)
* Makes PTI job run always Signed-off-by: jfedorov <[email protected]> * Makes PTI job continue on error Signed-off-by: jfedorov <[email protected]> * Makes SDK job steps continue on error Signed-off-by: jfedorov <[email protected]> --------- Signed-off-by: jfedorov <[email protected]>
1 parent eef4d6d commit 97cba55

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/sdk_build_and_test.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ jobs:
3131
ctest --output-on-failure --test-dir build
3232
3333
- name: BuildSanitized
34+
if: always()
3435
run: |
3536
cd sdk
3637
cmake --preset asan
3738
cmake --build --preset asan --parallel $(($(nproc)/2))
3839
3940
- name: BuildFuzz
41+
if: always()
4042
run: |
4143
# To ensure it still builds, run build for fuzz targets until we have
4244
# proper fuzz testing infrastructure in place.
@@ -45,17 +47,20 @@ jobs:
4547
cmake --build --preset fuzz --parallel $(($(nproc)/2))
4648
4749
- name: TestSanitized
50+
if: always()
4851
run: |
4952
cd sdk
5053
ctest --preset asan --output-on-failure -L samples
5154
5255
5356
pti-tools-build-and-test:
5457

55-
needs: sdk-build-and-test # this is a workaround to ensure tests setup to pass on this runner
58+
needs: sdk-build-and-test # this is a workaround to ensure jobs run sequentially
5659
# TODO make the workflow more generic
5760

58-
if: github.repository != 'intel/pti-gpu' # no run externally due to no required HW
61+
# run this job only if the previous one run and provided some result
62+
if: (needs.sdk-build-and-test.result == 'success' || needs.sdk-build-and-test.result == 'failure' )
63+
5964
runs-on: self-hosted
6065

6166
steps:

0 commit comments

Comments
 (0)