File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,20 +15,20 @@ jobs:
1515 - uses : actions/checkout@master
1616 with :
1717 ref : ${{ github.event.inputs.tag || github.ref }}
18- - name : Compile
19- uses : rust-build/rust-build.action@v1.4.4
20- env :
21- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
22- SRC_DIR : " bin"
23- TOOLCHAIN_VERSION : " 1.88.0"
18+ - name : Install musl tools
19+ run : sudo apt-get install -y musl-tools
20+ - name : Install Rust toolchain
21+ uses : dtolnay/rust-toolchain@master
2422 with :
25- RUSTTARGET : x86_64-unknown-linux-musl
26- UPLOAD_MODE : none
23+ toolchain : " 1.88.0"
24+ targets : x86_64-unknown-linux-musl
25+ - name : Build
26+ run : cargo build --manifest-path bin/Cargo.toml --target x86_64-unknown-linux-musl --release
2727 - name : Package and upload
2828 run : |
2929 TAG=${{ github.event.inputs.tag || github.ref_name }}
3030 ARCHIVE="actions-runner_v${TAG}_x86_64-unknown-linux-musl.zip"
31- zip "$ARCHIVE" bin/ target/x86_64-unknown-linux-musl/release/actions-runner
31+ zip "$ARCHIVE" target/x86_64-unknown-linux-musl/release/actions-runner
3232 sha256sum "$ARCHIVE" > "${ARCHIVE}.sha256sum"
3333 gh release upload "$TAG" "$ARCHIVE" "${ARCHIVE}.sha256sum" --clobber
3434 env :
You can’t perform that action at this time.
0 commit comments