Skip to content

Commit 2257655

Browse files
committed
add musl build
1 parent 18d8031 commit 2257655

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ on:
44
push:
55
tags:
66
- "v*.*.*"
7+
pull_request:
8+
branches: [ "main" ]
79

810
env:
911
CARGO_TERM_COLOR: always
1012
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
13+
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_MUSL_LINKER: aarch64-linux-musl-gcc
1114
MACOSX_DEPLOYMENT_TARGET: '10.13'
1215

1316
jobs:
@@ -26,6 +29,10 @@ jobs:
2629
target: aarch64-unknown-linux-gnu
2730
- os: ubuntu-latest
2831
target: x86_64-unknown-linux-gnu
32+
- os: ubuntu-latest
33+
target: aarch64-unknown-linux-musl
34+
- os: ubuntu-latest
35+
target: x86_64-unknown-linux-musl
2936

3037
steps:
3138
- name: Checkout
@@ -41,7 +48,7 @@ jobs:
4148
key: ${{ matrix.target }}
4249

4350
- name: Install gcc-aarch64-linux-gnu
44-
if: matrix.os == 'ubuntu-latest' && matrix.target == 'aarch64-unknown-linux-gnu'
51+
if: matrix.target == 'aarch64-unknown-linux-gnu' || matrix.target == 'aarch64-unknown-linux-musl'
4552
run: |
4653
sudo apt-get update
4754
sudo apt-get install -y gcc-aarch64-linux-gnu

0 commit comments

Comments
 (0)