Skip to content

Commit

Permalink
try musl build
Browse files Browse the repository at this point in the history
  • Loading branch information
deepu105 committed Oct 6, 2023
1 parent 2b26cd7 commit b552fd1
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ jobs:
matrix:
rust: [stable]
job:
- { os: "ubuntu-latest", target: "x86_64-unknown-linux-musl", artifact_prefix: "linux-musl", use-cross: true }
- {
os: "ubuntu-latest",
target: "x86_64-unknown-linux-musl",
artifact_prefix: "linux-musl",
use-cross: true,
}

steps:
- name: Checkout repository
Expand Down Expand Up @@ -49,10 +54,11 @@ jobs:
command: build
args: --release --verbose --target=${{ matrix.job.target }}
toolchain: ${{ matrix.rust }}

env:
RUSTFLAGS: "-Ctarget-feature=-crt-static"
- name: Test
uses: actions-rs/cargo@v1
with:
use-cross: ${{ matrix.job.use-cross }}
command: test
args: --target=${{ matrix.job.target }} ${{ matrix.job.test-bin }}
args: --target=${{ matrix.job.target }} ${{ matrix.job.test-bin }}

0 comments on commit b552fd1

Please sign in to comment.