From 2856b50616b27d9a257b962ce8cc4261919cad2e Mon Sep 17 00:00:00 2001 From: Martin Larralde Date: Mon, 21 Feb 2022 13:08:33 +0100 Subject: [PATCH] Fix static artifact build in `test.yml` Actions workflow --- .github/workflows/test.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8b1238f..211cb49 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -102,23 +102,17 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v1 - - name: Setup Rust stable - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - name: Build static binary uses: actions-rs/cargo@v1 with: command: build - args: '--release' + args: '--release --target=x86_64-unknown-linux-musl' - name: Compress binary uses: svenstaro/upx-action@v2 with: - file: target/release/fastobo-validator + file: target/x86_64-unknown-linux-musl/release/fastobo-validator - name: Create distribution archive - run: tar czf fastobo_validator-x86_64-linux-musl.tar.gz README.md CHANGELOG.md COPYING -C target/release/ fastobo-validator + run: tar czf fastobo_validator-x86_64-linux-musl.tar.gz README.md CHANGELOG.md COPYING -C target/x86_64-unknown-linux-musl/release/ fastobo-validator - name: Release files if: startsWith(github.ref, 'refs/tags/') uses: softprops/action-gh-release@v1