From 31201031b4420b471d05b0b2b92c249e3feeb8f2 Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Fri, 8 Sep 2023 03:50:05 +0100 Subject: github/workflows: Add a Debian Testing builder This requires some nefarious use of rustup and the funky rustup command line comes courtesy of Signed-off-by: Andrew Clayton --- .github/workflows/build_tests.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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 -- cgit