Skip to content

Commit 01b1bf2

Browse files
committed
Attempting a musl CI build
Related to #672
1 parent 15664a9 commit 01b1bf2

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,21 @@ jobs:
2929
include:
3030
- target: x86_64-unknown-linux-gnu
3131
os: ubuntu-latest
32+
- target: x86_64-unknown-linux-musl
33+
os: ubuntu-latest
3234
- target: x86_64-apple-darwin
3335
os: macos-latest
3436
- target: x86_64-pc-windows-msvc
3537
os: windows-latest
3638
runs-on: ${{ matrix.os }}
3739
steps:
3840
- uses: actions/checkout@v4
41+
- name: Installing musl
42+
if: ${{ matrix.target == 'x86_64-unknown-linux-musl' }}
43+
run: |
44+
sudo apt-get update
45+
sudo apt-get install -y musl-tools musl-dev
46+
sudo ln -s /usr/bin/g++ /usr/bin/musl-g++
3947
- name: Overriding rust version to project MSRV
4048
run: |
4149
echo Before override

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ Currently supported targets include:
114114

115115
- `x86_64-apple-darwin`
116116
- `x86_64-unknown-linux-gnu`
117+
- `x86_64-unknown-linux-musl`
117118
- `x86_64-pc-windows-msvc`
118119

119120
Feel free to open a PR to improve the CI by adding relevant targets.

0 commit comments

Comments
 (0)