|
9 | 9 | description: Rust nightly date
|
10 | 10 | required: true
|
11 | 11 |
|
12 |
| -env: |
13 |
| - EMCC_VERSION: ${{ inputs.emcc_version }} |
14 |
| - RUST_NIGHTLY_DATE: ${{ inputs.rust_nightly_date }} |
15 |
| - |
16 |
| -permissions: {} |
17 |
| - |
18 | 12 | jobs:
|
19 | 13 | pyodide-packages:
|
20 | 14 | name: Build & Publish rust emscripten-wasm-eh sysroot
|
21 | 15 | runs-on: ubuntu-latest
|
22 |
| - permissions: |
23 |
| - contents: read |
24 | 16 | timeout-minutes: 360
|
25 | 17 | steps:
|
26 | 18 | - name: Checkout
|
27 |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
28 |
| - with: |
29 |
| - persist-credentials: false |
| 19 | + uses: actions/checkout@v4 |
30 | 20 |
|
31 | 21 | - name: free up disk space
|
32 | 22 | run: ./free-disk-space.sh
|
33 | 23 |
|
34 | 24 | - name: Set up Python
|
35 |
| - uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0 |
| 25 | + uses: actions/setup-python@v4 |
36 | 26 | with:
|
37 | 27 | python-version: 3.12.8
|
38 | 28 |
|
39 | 29 | - name: Build Rust sysroot
|
40 | 30 | run: |
|
41 |
| - ./main.sh ${EMCC_VERSION} ${RUST_NIGHTLY_DATE} |
42 |
| -
|
43 |
| - - name: Upload artifact |
44 |
| - uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 |
45 |
| - with: |
46 |
| - name: emcc-${EMCC_VERSION}_nightly-${RUST_NIGHTLY_DATE} |
47 |
| - path: emcc-${EMCC_VERSION}_nightly-${RUST_NIGHTLY_DATE}.tar.bz2 |
48 |
| - if-no-files-found: error |
49 |
| - |
50 |
| - publish: |
51 |
| - name: Publish rust emscripten-wasm-eh sysroot |
52 |
| - runs-on: ubuntu-latest |
53 |
| - needs: [pyodide-packages] |
54 |
| - permissions: |
55 |
| - id-token: write |
56 |
| - attestations: write |
57 |
| - steps: |
58 |
| - - name: Download artifact |
59 |
| - uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1 |
60 |
| - with: |
61 |
| - path: upload |
62 |
| - merge-multiple: true |
63 |
| - |
64 |
| - - name: Generate artifact attestation(s) |
65 |
| - uses: actions/attest-build-provenance@7668571508540a607bdfd90a87a560489fe372eb # v2.1.0 |
66 |
| - with: |
67 |
| - subject-path: "upload/*.tar.bz2" |
| 31 | + ./main.sh ${{ inputs.emcc_version }} ${{ inputs.rust_nightly_date }} |
68 | 32 |
|
69 | 33 | - name: Create GitHub Release
|
70 |
| - uses: ncipollo/release-action@440c8c1cb0ed28b9f43e4d1d670870f059653174 # v1.16.0 |
| 34 | + uses: ncipollo/release-action@v1 |
71 | 35 | with:
|
72 |
| - artifacts: "upload/emcc-${EMCC_VERSION}_nightly-${RUST_NIGHTLY_DATE}.tar.bz2" |
73 |
| - tag: emcc-${EMCC_VERSION}_nightly-${RUST_NIGHTLY_DATE} |
| 36 | + artifacts: "emcc-${{ inputs.emcc_version }}_nightly-${{ inputs.rust_nightly_date }}.tar.bz2" |
| 37 | + tag: emcc-${{ inputs.emcc_version }}_nightly-${{ inputs.rust_nightly_date }} |
74 | 38 | draft: false
|
75 | 39 | prerelease: false
|
0 commit comments