From 6f57505191dd2a1a4db655b20a211934365a0fb9 Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Tue, 11 Jun 2024 22:13:07 -0700 Subject: [PATCH] add ci --- .forgejo/workflows/test.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .forgejo/workflows/test.yml diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml new file mode 100644 index 0000000..5224382 --- /dev/null +++ b/.forgejo/workflows/test.yml @@ -0,0 +1,22 @@ +on: [push, pull_request] + +jobs: + test: + runs-on: debian-12 + steps: + - uses: https://code.forgejo.org/actions/checkout@v3 + with: + fetch-depth: 0 + - run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain none + source "$HOME/.cargo/env" + echo "$PATH" >> "$GITHUB_PATH" + - run: | + # override server since 1.79.0 is not quite stable yet, + # it should be in a few days -- on 2024-06-13 + RUSTUP_DIST_SERVER=https://dev-static.rust-lang.org rustup install 1.79.0 + rustup default 1.79.0 + - uses: Swatinem/rust-cache@v2 + with: + save-if: ${{ github.ref == 'refs/heads/master' }} + - run: cargo test \ No newline at end of file