diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2023-09-08 03:50:05 +0100 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2023-09-08 15:58:44 +0100 |
commit | 31201031b4420b471d05b0b2b92c249e3feeb8f2 (patch) | |
tree | 833d80ebcc80e0028b695ae80bc10b1d699ccce3 | |
parent | bfdb7304cdbbc037abd397cd8ec5542168023f15 (diff) | |
download | unit-wasm-31201031b4420b471d05b0b2b92c249e3feeb8f2.tar.gz unit-wasm-31201031b4420b471d05b0b2b92c249e3feeb8f2.tar.bz2 |
github/workflows: Add a Debian Testing builder
This requires some nefarious use of rustup and the funky rustup command
line comes courtesy of <https://dentrassi.de/2020/06/17/headless-installation-of-cargo-and-rust/>
Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
-rw-r--r-- | .github/workflows/build_tests.yaml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/build_tests.yaml b/.github/workflows/build_tests.yaml index 55f71c6..b83753c 100644 --- a/.github/workflows/build_tests.yaml +++ b/.github/workflows/build_tests.yaml @@ -40,3 +40,29 @@ jobs: - name: make run: make V=1 E=1 all + + debian-testing: + runs-on: ubuntu-latest + + container: + image: debian:testing + + steps: + - name: Install tools/deps + run: | + apt-get -y update + apt-get -y install git curl wget wasi-libc make clang llvm lld + 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)) + curl https://sh.rustup.rs -sSf | sh -s -- -y + . "$HOME/.cargo/env" + rustup target add wasm32-wasi + wget -O- https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/wasi-sysroot-20.0.tar.gz | tar -xvzf - -C ${RUNNER_TEMP} + + - uses: actions/checkout@v3 + with: + fetch-depth: "0" + + - name: make + run: | + . "$HOME/.cargo/env" + make WASI_SYSROOT=${RUNNER_TEMP}/wasi-sysroot V=1 E=1 all |