|
27 | 27 | lts_matrix: ${{ needs.test_matrix.outputs.lts_lx_matrix }}
|
28 | 28 | lts_aws_matrix: ${{ needs.test_matrix.outputs.lts_aws_matrix }}
|
29 | 29 |
|
| 30 | + # We upload the build for people to download/use, override its name and |
| 31 | + # prefer widespread gzip compression. |
| 32 | + artifact_archive_name: sycl_linux.tar.gz |
| 33 | + |
30 | 34 | ubuntu2204_opaque_pointers_build_test:
|
31 | 35 | if: github.repository == 'intel/llvm'
|
32 | 36 | uses: ./.github/workflows/sycl_linux_build_and_test.yml
|
|
48 | 52 | retention-days: 90
|
49 | 53 | lts_matrix: ${{ needs.test_matrix.outputs.lts_wn_matrix }}
|
50 | 54 |
|
| 55 | + # We upload both Linux/Windows build via Github's "Releases" |
| 56 | + # functionality, make sure Linux/Windows names follow the same pattern. |
| 57 | + artifact_archive_name: sycl_windows.tar.gz |
| 58 | + |
| 59 | + nightly_build_upload: |
| 60 | + name: Nightly Build Upload |
| 61 | + if: ${{ github.ref_name == 'sycl' }} |
| 62 | + needs: [ubuntu2204_build_test, windows_default] |
| 63 | + runs-on: ubuntu-latest |
| 64 | + steps: |
| 65 | + - uses: actions/download-artifact@v3 |
| 66 | + with: |
| 67 | + name: sycl_linux_default |
| 68 | + - uses: actions/download-artifact@v3 |
| 69 | + with: |
| 70 | + name: sycl_windows_default |
| 71 | + - name: Compute tag |
| 72 | + id: tag |
| 73 | + run: | |
| 74 | + if [ "${{ github.event_name == 'schedule' }}" == "true" ]; then |
| 75 | + echo "TAG=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT" |
| 76 | + else |
| 77 | + # TODO: Use date of the commit? |
| 78 | + echo "TAG=$(date +'%Y-%m-%d')-${GITHUB_SHA::7}" >> "$GITHUB_OUTPUT" |
| 79 | + fi |
| 80 | + - name: Upload binaries |
| 81 | + uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 |
| 82 | + with: |
| 83 | + files: | |
| 84 | + sycl_linux.tar.gz |
| 85 | + sycl_windows.tar.gz |
| 86 | + tag_name: nightly-${{ steps.tag.outputs.TAG }} |
| 87 | + name: DPC++ daily ${{ steps.tag.outputs.TAG }} |
| 88 | + prerelease: true |
| 89 | + body: "Daily build ${{ steps.tag.outputs.TAG }}" |
| 90 | + target_commitish: ${{ github.sha }} |
| 91 | + |
51 | 92 | ubuntu2204_docker_build_push:
|
52 | 93 | if: github.repository == 'intel/llvm'
|
53 | 94 | runs-on: [Linux, build]
|
|
0 commit comments