Skip to content

Commit 85bfeb6

Browse files
authored
Merge pull request #7 from appsignal/fix/release-workflow-upload
Replace rust-build.action with native toolchain compilation
2 parents 7a2cdd0 + 80d0bba commit 85bfeb6

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)