From e7cf8e089a786a6fa341e5fa275eccf20fb9cee4 Mon Sep 17 00:00:00 2001 From: saji Date: Wed, 31 Jul 2024 00:19:05 -0500 Subject: [PATCH] wip: add ci --- .forgejo/workflows/cargo.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .forgejo/workflows/cargo.yml diff --git a/.forgejo/workflows/cargo.yml b/.forgejo/workflows/cargo.yml new file mode 100644 index 0000000..050924c --- /dev/null +++ b/.forgejo/workflows/cargo.yml @@ -0,0 +1,23 @@ +name: cargo_test_bench +on: push + +jobs: + test: + name: Run Tests + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - run: cargo test --all-features + bench: + name: Run Benchmarks + runs-on: ubuntu-latest + steps: + - uses: dtolnay/rust-toolchain@stable + - uses: actions/checkout@v4 + with: + fetch-depth: 2 + - run: git checkout HEAD~ + - run: cargo bench + - run: git checkout master + - run: cargo bench