Skip to content

Commit 8810618

Browse files
author
Erik Kaneda
committed
fix
1 parent 8179d9e commit 8810618

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
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"

.github/workflows/dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
- name: install the bootstrap toolchain
5757
run: |
5858
# Extract the stage0 version
59-
TOOLCHAIN=$(jq -r '.compiler | {version,date} | join("-")' -- src/stage0.json)
59+
TOOLCHAIN=$(awk -F= '{a[$1]=$2} END {print(a["compiler_version"] "-" a["compiler_date"])}' src/stage0)
6060
# Install and set as default
6161
rustup toolchain install --no-self-update --profile minimal $TOOLCHAIN
6262
rustup default $TOOLCHAIN

.github/workflows/release.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,9 @@ jobs:
1818
uses: actions/download-artifact@v4
1919
with:
2020
path: artifacts
21-
- name: Compress artifacts
22-
shell: bash
23-
run: |
24-
ls -lha ./artifacts
25-
mkdir assets
26-
for DIR in $(ls ./artifacts); do
27-
tar czf "assets/$DIR.tar.gz" -C "artifacts/$DIR" .
28-
done
29-
ls -lha ./assets
21+
merge-multiple: true
22+
- name: Display structure of downloaded artifacts
23+
run: ls -R ./artifacts
3024
- name: Create release
3125
env:
3226
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -36,5 +30,5 @@ jobs:
3630
tar xvz --strip-components=2 --exclude=man
3731
chmod +x ./gh
3832
39-
./gh release create --repo "$GITHUB_REPOSITORY" "$GITHUB_REF_NAME" ./assets/* || \
40-
./gh release upload --repo "$GITHUB_REPOSITORY" "$GITHUB_REF_NAME" ./assets/*
33+
./gh release create --repo "$GITHUB_REPOSITORY" "$GITHUB_REF_NAME" ./artifacts/* || \
34+
./gh release upload --repo "$GITHUB_REPOSITORY" "$GITHUB_REF_NAME" ./artifacts/*

0 commit comments

Comments
 (0)