Skip to content

Commit 92020c2

Browse files
committed
fix(release): add musl C++ compiler for static Linux binary build
* Symlink g++ as x86_64-linux-musl-g++ for esaxx-rs/tokenizers build * Install musl-dev alongside musl-tools * Set fail-fast: false on build-binaries matrix to avoid cascading cancellation
1 parent acc1ee3 commit 92020c2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ jobs:
312312
name: Build Binaries
313313
needs: test
314314
strategy:
315+
fail-fast: false
315316
matrix:
316317
include:
317318
- os: ubuntu-latest
@@ -326,7 +327,11 @@ jobs:
326327

327328
- name: Install musl toolchain and protoc (Linux)
328329
if: runner.os == 'Linux'
329-
run: sudo apt-get update && sudo apt-get install -y musl-tools protobuf-compiler
330+
run: |
331+
sudo apt-get update && sudo apt-get install -y musl-tools musl-dev protobuf-compiler
332+
# Symlink musl-g++ so cc-rs can find the C++ compiler for musl target
333+
sudo ln -sf /usr/bin/g++ /usr/local/bin/x86_64-linux-musl-g++
334+
sudo ln -sf /usr/bin/gcc /usr/local/bin/x86_64-linux-musl-gcc
330335
331336
- name: Install protoc (macOS)
332337
if: runner.os == 'macOS'

0 commit comments

Comments
 (0)