Skip to content

Commit

Permalink
Fix missing musl target in release CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisduerr committed Sep 26, 2024
1 parent 3979af6 commit e0a89e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Stable
run: cargo test
- name: Stable (Musl) Test
run: |
rustup target add x86_64-unknown-linux-musl
cargo test --target x86_64-unknown-linux-musl
- name: Oldstable
run: |
oldstable=$(cat Cargo.toml | grep "rust-version" | sed 's/.*"\(.*\)".*/\1/')
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
run: rustup update && rustup target add x86_64-unknown-linux-musl
- name: Build & Test
run: |
cargo build --release
cargo test --release
cargo build --target x86_64-unknown-linux-musl --release
cargo test --target x86_64-unknown-linux-musl --release
- name: Upload Assets
run: |
./.github/workflows/upload_asset.sh ./target/x86_64-unknown-linux-musl/release/sketch $GITHUB_TOKEN

0 comments on commit e0a89e9

Please sign in to comment.