diff --git a/.github/workflows/build-release-binaries.yaml b/.github/workflows/build-release-binaries.yaml index 906e1124d90..0b67cd9f5d2 100644 --- a/.github/workflows/build-release-binaries.yaml +++ b/.github/workflows/build-release-binaries.yaml @@ -16,7 +16,7 @@ jobs: strategy: matrix: platform: - - { os: ubuntu-22.04, target: x86_64-unknown-linux-gnu } + - { os: ubuntu-22.04, target: x86_64-unknown-linux-musl } - { os: macos-latest, target: aarch64-apple-darwin } runs-on: ${{ matrix.platform.os }} @@ -42,11 +42,15 @@ jobs: if: matrix.platform.os == 'macos-latest' run: rustup target add aarch64-apple-darwin - - name: Install deps for Linux build + - name: Add musl target + if: matrix.platform.os == 'ubuntu-22.04' + run: rustup target add x86_64-unknown-linux-musl + + - name: Install deps for Linux musl build if: matrix.platform.os == 'ubuntu-22.04' run: | sudo apt-get update - sudo apt-get install -y build-essential libclang-dev + sudo apt-get install -y musl-tools libclang-dev - name: Install deps for macOS build if: matrix.platform.os == 'macos-latest' diff --git a/Cargo.toml b/Cargo.toml index cb4e438a9b7..fae3b677d7e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,7 +44,7 @@ frame-try-runtime = { git = "https://github.com/paritytech/polkadot-sdk" } frame-support = { git = "https://github.com/paritytech/polkadot-sdk" } frame-system = { git = "https://github.com/paritytech/polkadot-sdk" } -sc-cli = { git = "https://github.com/paritytech/polkadot-sdk" } +sc-cli = { git = "https://github.com/paritytech/polkadot-sdk", default-features = false } sc-executor = { git = "https://github.com/paritytech/polkadot-sdk" } sc-service = { git = "https://github.com/paritytech/polkadot-sdk" } diff --git a/core/Cargo.toml b/core/Cargo.toml index 0269d99bd73..5fedbf9f78e 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -34,7 +34,7 @@ frame-try-runtime = { workspace = true, features=["try-runtime"] } frame-support = { workspace = true } frame-system = { workspace = true } -sc-cli = { workspace = true } +sc-cli = { workspace = true, default-features = false } sc-executor = { workspace = true } sp-api = { workspace = true }