Skip to content

Commit 7fe5487

Browse files
fix(release): resolve musl C++ compilation by using HuggingFace-only build
- musl builds now use --no-default-features --features huggingface - Avoids llama.cpp C++ compilation issues with musl toolchain - Provides lightweight, statically-linked Linux binary - Other platforms still get full functionality including llama.cpp This fixes the missing x86_64-linux-musl-g++ compiler error. Signed-off-by: Michael A. Kuykendall <michaelallenkuykendall@gmail.com>
1 parent e6db9ae commit 7fe5487

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,18 @@ jobs:
179179

180180
- name: Install musl-tools (for musl builds)
181181
if: matrix.target == 'x86_64-unknown-linux-musl'
182-
run: sudo apt-get update && sudo apt-get install -y musl-tools
182+
run: |
183+
sudo apt-get update
184+
sudo apt-get install -y musl-tools musl-dev
183185
184186
- name: Build binary
185-
run: cargo build --release --target ${{ matrix.target }}
187+
run: |
188+
if [[ "${{ matrix.target }}" == "x86_64-unknown-linux-musl" ]]; then
189+
# For musl builds, use huggingface-only to avoid llama.cpp C++ compilation issues
190+
cargo build --release --target ${{ matrix.target }} --no-default-features --features huggingface
191+
else
192+
cargo build --release --target ${{ matrix.target }}
193+
fi
186194
187195
- name: Upload artifact
188196
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)