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 6d80d6e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 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
16 changes: 14 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ on:
- main
merge_group:
schedule:
- cron: '00 05 * * *'
- cron: "00 05 * * *"
jobs:
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build: [ ubuntu-stable, macos-stable, win-msvc-stable ] # win-gnu-stable
build: [ubuntu-stable, macos-stable, win-msvc-stable] # win-gnu-stable
include:
- build: ubuntu-stable
os: ubuntu-latest
Expand Down Expand Up @@ -51,12 +51,24 @@ 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: install musl-gcc
if: matrix.os == 'ubuntu-latest'
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: musl-tools
version: 1.0

- 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 6d80d6e

Please sign in to comment.