From 97cba55370c59d061a7eed656e5af5557a84d70d Mon Sep 17 00:00:00 2001 From: Julia Fedorova Date: Thu, 30 Nov 2023 01:39:07 +0100 Subject: [PATCH] Makes PTI job run always (#26) * Makes PTI job run always Signed-off-by: jfedorov * Makes PTI job continue on error Signed-off-by: jfedorov * Makes SDK job steps continue on error Signed-off-by: jfedorov --------- Signed-off-by: jfedorov --- .github/workflows/sdk_build_and_test.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sdk_build_and_test.yml b/.github/workflows/sdk_build_and_test.yml index 56df72a..ed82d05 100644 --- a/.github/workflows/sdk_build_and_test.yml +++ b/.github/workflows/sdk_build_and_test.yml @@ -31,12 +31,14 @@ jobs: ctest --output-on-failure --test-dir build - name: BuildSanitized + if: always() run: | cd sdk cmake --preset asan cmake --build --preset asan --parallel $(($(nproc)/2)) - name: BuildFuzz + if: always() run: | # To ensure it still builds, run build for fuzz targets until we have # proper fuzz testing infrastructure in place. @@ -45,6 +47,7 @@ jobs: cmake --build --preset fuzz --parallel $(($(nproc)/2)) - name: TestSanitized + if: always() run: | cd sdk ctest --preset asan --output-on-failure -L samples @@ -52,10 +55,12 @@ jobs: pti-tools-build-and-test: - needs: sdk-build-and-test # this is a workaround to ensure tests setup to pass on this runner + needs: sdk-build-and-test # this is a workaround to ensure jobs run sequentially # TODO make the workflow more generic - if: github.repository != 'intel/pti-gpu' # no run externally due to no required HW + # run this job only if the previous one run and provided some result + if: (needs.sdk-build-and-test.result == 'success' || needs.sdk-build-and-test.result == 'failure' ) + runs-on: self-hosted steps: