Skip to content

Commit

Permalink
fix issues with build and conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej committed Oct 27, 2024
1 parent f3363b2 commit 856d5f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ jobs:
if: startsWith(matrix.build, 'linux-musl-x64')
run: |
apk add bash mold make curl cmake ninja clang18 zstd-static llvm18-dev clang18-static llvm18-static ncurses-static zlib-static
ln -s /usr/bin/clang-18 /usr/bin/clang
- name: Install Linux tools
if: startsWith(matrix.build, 'linux-x64')
run: |
Expand Down Expand Up @@ -366,7 +367,6 @@ jobs:
- name: Build Wasmer with v8 backend musl
if: ${{ endsWith(matrix.build, 'v8') && startsWith(matrix.build, 'linux-musl') }}
run: |
ln -s /usr/bin/clang-18 /usr/bin/clang
echo "#!/bin/bash" >> /usr/bin/llvm-config
echo 'if [ "$1" = "--libs" ]; then' >> /usr/bin/llvm-config
echo 'llvm-config-18 "$@" "--link-static"' >> /usr/bin/llvm-config
Expand All @@ -377,7 +377,7 @@ jobs:
chmod +x /usr/bin/llvm-config
LLVM_CONFIG_PATH=/usr/bin/llvm-config RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=mold -lzstd" make build-wasmer-v8
- name: Build Wasmer with v8 backend
if: ${{ endsWith(matrix.build, 'v8') && !startsWith(matrix.build, 'linux-x64') }}
if: ${{ endsWith(matrix.build, 'v8') && (!startsWith(matrix.build, 'linux-x64') || !startsWith(matrix.build, 'linux-musl') }}
run: |
echo $LIBCLANG_STATIC_PATH
make build-wasmer-v8
Expand Down

0 comments on commit 856d5f5

Please sign in to comment.