Skip to content

Commit a490f2f

Browse files
authored
Fix the musl build (#132)
1 parent b191cc0 commit a490f2f

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/build-release-binaries.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
platform:
19-
- { os: ubuntu-22.04, target: x86_64-unknown-linux-gnu }
19+
- { os: ubuntu-22.04, target: x86_64-unknown-linux-musl }
2020
- { os: macos-latest, target: aarch64-apple-darwin }
2121

2222
runs-on: ${{ matrix.platform.os }}
@@ -42,11 +42,15 @@ jobs:
4242
if: matrix.platform.os == 'macos-latest'
4343
run: rustup target add aarch64-apple-darwin
4444

45-
- name: Install deps for Linux build
45+
- name: Add musl target
46+
if: matrix.platform.os == 'ubuntu-22.04'
47+
run: rustup target add x86_64-unknown-linux-musl
48+
49+
- name: Install deps for Linux musl build
4650
if: matrix.platform.os == 'ubuntu-22.04'
4751
run: |
4852
sudo apt-get update
49-
sudo apt-get install -y build-essential libclang-dev
53+
sudo apt-get install -y musl-tools libclang-dev
5054
5155
- name: Install deps for macOS build
5256
if: matrix.platform.os == 'macos-latest'

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ frame-try-runtime = { git = "https://github.com/paritytech/polkadot-sdk" }
4444
frame-support = { git = "https://github.com/paritytech/polkadot-sdk" }
4545
frame-system = { git = "https://github.com/paritytech/polkadot-sdk" }
4646

47-
sc-cli = { git = "https://github.com/paritytech/polkadot-sdk" }
47+
sc-cli = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false }
4848
sc-executor = { git = "https://github.com/paritytech/polkadot-sdk" }
4949
sc-service = { git = "https://github.com/paritytech/polkadot-sdk" }
5050

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ frame-try-runtime = { workspace = true, features=["try-runtime"] }
3434
frame-support = { workspace = true }
3535
frame-system = { workspace = true }
3636

37-
sc-cli = { workspace = true }
37+
sc-cli = { workspace = true, default-features = false }
3838
sc-executor = { workspace = true }
3939

4040
sp-api = { workspace = true }

0 commit comments

Comments
 (0)