diff --git a/.github/workflows/sycl-linux-build.yml b/.github/workflows/sycl-linux-build.yml index b76609f9d66bd..d9a3ed3cf9cfb 100644 --- a/.github/workflows/sycl-linux-build.yml +++ b/.github/workflows/sycl-linux-build.yml @@ -46,7 +46,10 @@ on: default: 3 e2e_binaries_artifact: type: string - required: False + required: false + pack_release: + type: string + required: false outputs: build_conclusion: @@ -100,6 +103,10 @@ on: options: - 3 + pack_release: + type: string + required: false + permissions: read-all jobs: @@ -215,11 +222,26 @@ jobs: # TODO consider moving this to Dockerfile. export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH LIT_OPTS="--allow-empty-runs" LIT_FILTER="e2e_test_requirements" cmake --build $GITHUB_WORKSPACE/build --target check-sycl - - name: Install + - name: Install sycl-toolchain if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }} - # TODO replace utility installation with a single CMake target run: | cmake --build $GITHUB_WORKSPACE/build --target deploy-sycl-toolchain + + - name: Pack toolchain release + if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' && inputs.pack_release == 'true' }} + run: tar -I '${{ steps.artifact_info.outputs.COMPRESS }}' -cf ${{ steps.artifact_info.outputs.ARCHIVE_NAME }} -C $GITHUB_WORKSPACE/build/install . + - name: Upload toolchain release + if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' && inputs.pack_release == 'true' }} + uses: actions/upload-artifact@v4 + with: + name: sycl_linux_release + path: ${{ steps.artifact_info.outputs.ARCHIVE_NAME }} + retention-days: ${{ inputs.retention-days }} + + - name: Install utilities + if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }} + # TODO replace utility installation with a single CMake target + run: | cmake --build $GITHUB_WORKSPACE/build --target utils/FileCheck/install cmake --build $GITHUB_WORKSPACE/build --target utils/count/install cmake --build $GITHUB_WORKSPACE/build --target utils/not/install