Skip to content
This repository was archived by the owner on Oct 8, 2025. It is now read-only.

Commit 3120103

Browse files
committed
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>
1 parent bfdb730 commit 3120103

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/build_tests.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,29 @@ jobs:
4040

4141
- name: make
4242
run: make V=1 E=1 all
43+
44+
debian-testing:
45+
runs-on: ubuntu-latest
46+
47+
container:
48+
image: debian:testing
49+
50+
steps:
51+
- name: Install tools/deps
52+
run: |
53+
apt-get -y update
54+
apt-get -y install git curl wget wasi-libc make clang llvm lld
55+
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))
56+
curl https://sh.rustup.rs -sSf | sh -s -- -y
57+
. "$HOME/.cargo/env"
58+
rustup target add wasm32-wasi
59+
wget -O- https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/wasi-sysroot-20.0.tar.gz | tar -xvzf - -C ${RUNNER_TEMP}
60+
61+
- uses: actions/checkout@v3
62+
with:
63+
fetch-depth: "0"
64+
65+
- name: make
66+
run: |
67+
. "$HOME/.cargo/env"
68+
make WASI_SYSROOT=${RUNNER_TEMP}/wasi-sysroot V=1 E=1 all

0 commit comments

Comments
 (0)