From b3825d3b67ef0a20d293cfc3c89420115be9219c Mon Sep 17 00:00:00 2001 From: Colin Cai Date: Tue, 20 Feb 2024 16:19:45 -0500 Subject: [PATCH] add CI --- .github/workflows/ci.yaml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 0000000..9795951 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,33 @@ + +name: CI + +on: + push: + pull_request: + workflow_dispatch: + +permissions: + contents: read + +jobs: + test: + name: Test suite + runs-on: + - ubuntu-latest + - windows-latest + timeout-minutes: 2 + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly + - run: cargo test + + test-release: + name: Test suite + runs-on: + - ubuntu-latest + - windows-latest + timeout-minutes: 2 + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly + - run: cargo test --release \ No newline at end of file