summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2023-08-26 17:51:51 +0100
committerAndrew Clayton <a.clayton@nginx.com>2023-08-26 17:51:51 +0100
commita51602d26bd811b28c6d227d0c7270bb400f53ef (patch)
tree0304327625d5035e7a48185d32c02b5054ba40d7 /.github/workflows
parent18a39cca9769b1651a9454471bbd8864e8d84d7c (diff)
downloadunit-wasm-a51602d26bd811b28c6d227d0c7270bb400f53ef.tar.gz
unit-wasm-a51602d26bd811b28c6d227d0c7270bb400f53ef.tar.bz2
github/workflows: Simplify installation of libclang_rt.builtins-wasm32.a
Rather than using and rpm(8) and grep(1) to find the location to store the libclang_rt.builtins-wasm32.a file use clangs -print-runtime-dir option and strip the last component. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build_tests.yaml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/build_tests.yaml b/.github/workflows/build_tests.yaml
index 9dc463d..55f71c6 100644
--- a/.github/workflows/build_tests.yaml
+++ b/.github/workflows/build_tests.yaml
@@ -32,7 +32,7 @@ jobs:
- name: Install tools/deps
run: |
dnf -y install git wget clang llvm compiler-rt lld make wasi-libc-devel cargo rust rust-std-static-wasm32-unknown-unknown rust-std-static-wasm32-wasi
- wget -O- https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/libclang_rt.builtins-wasm32-wasi-20.0.tar.gz | tar --strip-components=1 -xvzf - -C $(dirname $(rpm -ql compiler-rt | grep lib/libclang_rt.builtins-x86_64.a))
+ wget -O- https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/libclang_rt.builtins-wasm32-wasi-20.0.tar.gz | tar --strip-components=1 -xvzf - -C $(dirname $(clang -print-runtime-dir))
- uses: actions/checkout@v3
with: