From ef13a67cb92be47eb488bd2d3f63742e90e7b108 Mon Sep 17 00:00:00 2001 From: Sophie Herold Date: Thu, 27 Jun 2024 17:18:12 +0200 Subject: [PATCH] CI: Basic script --- .github/workflows/rust.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9fd45e0..f1a2cff 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,13 +10,31 @@ env: CARGO_TERM_COLOR: always jobs: - build: + build_and_test: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + rust: + - "1.75" + - "stable" + steps: - uses: actions/checkout@v4 + with: + submodules: true - name: Build run: cargo build --verbose - name: Run tests run: cargo test --verbose + - name: Install rust ${{ matrix.rust }} + uses: dtolnay/rust-toolchain@stable + with: + toolchain: ${{ matrix.rust }} + components: rustfmt, clippy + - name: Build + run: cargo build + - name: Run tests + run: cargo test -- --nocapture