Skip to content

Commit

Permalink
musl build
Browse files Browse the repository at this point in the history
  • Loading branch information
liamaharon committed Oct 18, 2023
1 parent 6b2369e commit b6ddf71
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build-release-binaries.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
matrix:
platform:
- { os: ubuntu-latest, target: x86_64-unknown-linux-gnu }
- { os: ubuntu-latest, target: x86_64-unknown-linux-musl }
- { os: macos-latest, target: x86_64-apple-darwin }

runs-on: ${{ matrix.platform.os }}
Expand All @@ -19,7 +19,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2


- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
Expand All @@ -32,6 +31,17 @@ jobs:
toolchain: stable
override: true

- name: Add musl target
if: matrix.platform.os == 'ubuntu-latest'
run: rustup target add x86_64-unknown-linux-musl

- name: Install deps for musl build
if: matrix.platform.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y musl-tools clang build-essential curl llvm-dev libclang-dev linux-headers-generic libsnappy-dev liblz4-dev libzstd-dev libgflags-dev zlib1g-dev libbz2-dev
sudo ln -s /usr/bin/g++ /usr/bin/musl-g++
- name: Build Rust project
run: cargo build --release --target ${{ matrix.platform.target }}

Expand Down

0 comments on commit b6ddf71

Please sign in to comment.