From 5c75a9fa25ea6027a7a7526c692c477b9aa00f3a Mon Sep 17 00:00:00 2001 From: c0repwn3r Date: Mon, 26 Jun 2023 14:44:16 -0400 Subject: [PATCH] add CI --- .builds/check.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .builds/check.yml diff --git a/.builds/check.yml b/.builds/check.yml new file mode 100644 index 0000000..dbf3328 --- /dev/null +++ b/.builds/check.yml @@ -0,0 +1,47 @@ +image: alpine/3.17 +packages: + - openssl-dev + - go +sources: + - https://git.e3t.cc/~core/trifid +tasks: + - setup: | + curl https://sh.rustup.rs -sSf | sh -s -- -y + source ~/.cargo/env + rustup target add x86_64-unknown-linux-musl + - check/dnapi-rs: | + source ~/.cargo/env + cd /home/build/trifid/dnapi-rs + cargo check --locked --target x86_64-unknown-linux-musl + cargo build --locked --target x86_64-unknown-linux-musl + cargo clippy --locked --target x86_64-unknown-linux-musl + - check/nebula-ffi: | + source ~/.cargo/env + cd /home/build/trifid/nebula-ffi + cargo check --locked --target x86_64-unknown-linux-musl + cargo build --locked --target x86_64-unknown-linux-musl + cargo clippy --locked --target x86_64-unknown-linux-musl + - check/tfcli: | + source ~/.cargo/env + cd /home/build/trifid/tfcli + cargo check --locked --target x86_64-unknown-linux-musl + cargo build --locked --target x86_64-unknown-linux-musl + cargo clippy --locked --target x86_64-unknown-linux-musl + - check/tfclient: | + source ~/.cargo/env + cd /home/build/trifid/tfclient + cargo check --locked --target x86_64-unknown-linux-musl + cargo build --locked --target x86_64-unknown-linux-musl + cargo clippy --locked --target x86_64-unknown-linux-musl + - check/trifid-api: | + source ~/.cargo/env + cd /home/build/trifid/trifid-api + cargo check --locked --target x86_64-unknown-linux-musl + cargo build --locked --target x86_64-unknown-linux-musl + cargo clippy --locked --target x86_64-unknown-linux-musl + - check/trifid-pki: | + source ~/.cargo/env + cd /home/build/trifid/trifid-pki + cargo check --locked --target x86_64-unknown-linux-musl + cargo build --locked --target x86_64-unknown-linux-musl + cargo clippy --locked --target x86_64-unknown-linux-musl