From c8b174d182fd32d462b54b4c07aeba2fa82c9cf7 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 22 Jul 2025 03:07:13 +0300 Subject: [PATCH] ci: initial setup Hope this works --- .forgejo/workflows/rust.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .forgejo/workflows/rust.yaml diff --git a/.forgejo/workflows/rust.yaml b/.forgejo/workflows/rust.yaml new file mode 100644 index 0000000..1801a0a --- /dev/null +++ b/.forgejo/workflows/rust.yaml @@ -0,0 +1,29 @@ +name: Rust +on: [push, workflow_dispatch] + +jobs: + build: + runs-on: poseidon-runner + steps: + - uses: actions/checkout@v4 + + - name: Install Rust + uses: msrd0/rust-toolchain@v1 + with: + toolchain: stable + + - name: install prerequisites + run: | + apt-get update + apt-get install -y curl build-essential gcc + + - name: install rustfmt and rust-analyzer and nextest + run: | + rustup component add rustfmt + rustup component add rust-analyzer + + - name: Run build + run: cargo build --locked --all-targets + + - name: Run tests + run: cargo test