Skip to content

Commit

Permalink
ci: build and release musl binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
robjtede committed Oct 9, 2024
1 parent d6004cf commit 85029a6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-release-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
os: ubuntu-latest
archive_ext: tgz

- target: x86_64-unknown-linux-musl
os: ubuntu-latest
archive_ext: tgz

- target: x86_64-apple-darwin
os: macos-13
archive_ext: tgz
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,17 @@ jobs:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
target: x86_64-unknown-linux-musl

- name: fetch
run: cargo fetch --verbose

- name: build
run: cargo build --verbose

- name: build using musl
if: matrix.os == 'ubuntu-latest'
run: cargo build --verbose --target=x86_64-unknown-linux-musl

- name: test_all
run: cargo test --verbose --all -- --test-threads=1

0 comments on commit 85029a6

Please sign in to comment.