2020 - os : Linux
2121 arch : X64
2222 triple : x86_64-unknown-linux-gnu
23- runs-on : [ self-hosted, prod , "${{ matrix.os }}", "${{ matrix.arch }}" ]
23+ runs-on : [ self-hosted, release , "${{ matrix.os }}", "${{ matrix.arch }}" ]
2424 steps :
2525 - name : Install Rust
2626 uses : risc0/actions-rs-toolchain@v1
@@ -46,11 +46,19 @@ jobs:
4646 run : GITHUB_ACTIONS=false cargo run --bin rzup -- build rust --path $GITHUB_WORKSPACE/rust
4747 working-directory : risc0
4848
49- - name : Archive build output
50- uses : actions/upload-artifact@v4
49+ - name : " Archive toolchain"
50+ run : |
51+ tar \
52+ --exclude lib/rustlib/src \
53+ --exclude lib/rustlib/rustc-src \
54+ -hczvf \
55+ ./rust-toolchain-${{ matrix.triple }}.tar.gz \
56+ -C ./build/${{ matrix.triple }}/stage2/ \
57+ .
58+ working-directory : rust
59+
60+ - name : " Upload workflow artifact"
61+ uses : " actions/upload-artifact@v4"
5162 with :
52- name : rust-toolchain-${{ matrix.triple }}
53- path : |
54- rust/build/${{ matrix.triple }}/stage2
55- !rust/build/${{ matrix.triple }}/stage2/lib/rustlib/src
56- !rust/build/${{ matrix.triple }}/stage2/lib/rustlib/rustc-src
63+ name : " rust-toolchain-${{ matrix.triple }}.tar.gz"
64+ path : " rust/rust-toolchain-${{ matrix.triple }}.tar.gz"
0 commit comments