Skip to content

Commit

Permalink
Fix static artifact build in test.yml Actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Feb 21, 2022
1 parent b8a19ab commit 2856b50
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2856b50

Please sign in to comment.