From 01956d4ee1cc876975db8c32fba465737c97f6a4 Mon Sep 17 00:00:00 2001 From: asonix Date: Wed, 7 Feb 2024 14:39:34 -0600 Subject: [PATCH] Use actions --- .forgejo/workflows/check.yaml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.forgejo/workflows/check.yaml b/.forgejo/workflows/check.yaml index 1bb2e07..59a285d 100644 --- a/.forgejo/workflows/check.yaml +++ b/.forgejo/workflows/check.yaml @@ -10,20 +10,17 @@ jobs: container: image: docker.io/node:20-bookworm steps: - - uses: actions/checkout@v4 + - uses: github.com/actions/checkout@v4 + - uses: github.com/hecrj/setup-rust-action@v2 + with: + rust-version: 1.75.0 + components: clippy + targets: x86_64-unknown-linux-musl,armv7-unknown-linux-musleabihf,aarch64-unknown-linux-musl + - uses: github.com/taiki-e/install-action@v2 + with: + tool: cargo-binstall + - uses: github.com/goto-bus-stop/setup-zig@v2 - run: | - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable --profile minimal -y ; - export PATH=$PATH:/root/.cargo/bin ; - rustup target add x86_64-unknown-linux-musl ; - rustup target add armv7-unknown-linux-musleabihf ; - rustup target add aarch64-unknown-linux-musl ; - rustup component add clippy ; - curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash ; - yes | cargo binstall cargo-zigbuild ; - curl -L --proto '=https' --tlsv1.2 -sSfO https://ziglang.org/download/0.11.0/zig-linux-x86_64-0.11.0.tar.xz ; - unxz zig-linux-x86_64-0.11.0.tar.xz ; - tar -xf zig-linux-x86_64-0.11.0.tar ; - export PATH=$PATH:$(pwd)/zig-linux-x86_64-0.11.0 ; cargo zigbuild --target x86_64-unknown-linux-musl ; cargo zigbuild --target armv7-unknown-linux-musleabihf ; cargo zigbuild --target aarch64-unknown-linux-musl ;