@@ -168,7 +168,6 @@ jobs:
168168 # Macos fails on unstable rust. We skip the inline examples test for now.
169169 if : " !(contains(matrix.os, 'macos') && matrix.rust == 'nightly')"
170170 run : cargo test --release --workspace --features closure,anyhow,runtime --no-fail-fast
171-
172171 test-embed :
173172 name : Test with embed
174173 runs-on : ubuntu-latest
@@ -226,3 +225,46 @@ jobs:
226225
227226 - name : Test with embed feature
228227 run : cargo test --workspace --release --features closure,embed,anyhow --no-fail-fast
228+
229+ build-musl :
230+ name : musl
231+ runs-on : ubuntu-latest
232+ strategy :
233+ matrix :
234+ php : ["8.1", "8.2", "8.3", "8.4"]
235+ phpts : [ts, nts]
236+ env :
237+ CARGO_TERM_COLOR : always
238+ steps :
239+ - name : Checkout code
240+ uses : actions/checkout@v5
241+ - name : Setup PHP
242+ uses : shivammathur/setup-php@v2
243+ with :
244+ php-version : ${{ matrix.php }}
245+ env :
246+ phpts : ${{ matrix.phpts }}
247+ debug : true
248+ - name : Setup LLVM & Clang
249+ id : clang
250+ uses : KyleMayes/install-llvm-action@v2
251+ with :
252+ version : 17
253+
254+ - name : Install libclang.a
255+ run : sudo apt-get update && sudo apt-get install --assume-yes --no-install-recommends libclang-17-dev
256+
257+ - name : Configure Clang
258+ run : |
259+ echo "LIBCLANG_PATH=${{ runner.temp }}/llvm-17/lib" >> $GITHUB_ENV
260+ echo "LLVM_VERSION=17" >> $GITHUB_ENV
261+ echo "LLVM_CONFIG_PATH=${{ runner.temp }}/llvm-17/bin/llvm-config" >> $GITHUB_ENV
262+ echo "LIBCLANG_STATIC_PATH=/usr/lib/llvm-17/lib" >> $GITHUB_ENV
263+
264+ - name : Build
265+ uses : houseabsolute/actions-rust-cross@v1
266+ with :
267+ target : x86_64-unknown-linux-musl
268+ use-rust-cache : true
269+ command : build
270+ args : --release --no-default-features --features closure,anyhow,static,enum --workspace
0 commit comments