From dacd6231a2e1222b7bbb8b1fe8eb31c425319925 Mon Sep 17 00:00:00 2001 From: Raoul Strackx Date: Thu, 9 Nov 2023 10:25:37 +0100 Subject: [PATCH] Local CI --- ct.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 ct.sh diff --git a/ct.sh b/ct.sh new file mode 100755 index 000000000..376eb01ec --- /dev/null +++ b/ct.sh @@ -0,0 +1,17 @@ +#!/bin/bash -ex +export RUST_BACKTRACE=1 + +toolchains=("nightly-2023-05-07-x86_64-unknown-linux-gnu" "nightly-2024-02-20-x86_64-unknown-linux-gnu") +platforms=("x86_64-fortanix-unknown-sgx" "x86_64-unknown-linux-gnu") + +for toolchain in "${toolchains[@]}"; do + for platform in "${platforms[@]}"; do + echo "toolchain: $toolchain" + echo "platform: $platform" + echo "" + cargo +${toolchain} test --target ${platform} + cargo +${toolchain} test --features "net,os-poll" --target ${platform} + cargo +${toolchain} test --features "net,os-ext" --target ${platform} + cargo +${toolchain} test --features "net,os-poll,os-ext" --target ${platform} + done +done