From a278a43f371e9a6957e99409a845b7b28fd6e019 Mon Sep 17 00:00:00 2001 From: Christopher Regali <60792386+ChrisRega@users.noreply.github.com> Date: Sat, 29 Oct 2022 19:18:47 +0200 Subject: [PATCH] Update rust.yml --- .github/workflows/rust.yml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 79251f5..22ac453 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,22 +1,31 @@ -name: Rust - on: push: - branches: [ main ] + branches: [ "main" ] pull_request: - branches: [ main ] + branches: [ "main" ] env: CARGO_TERM_COLOR: always jobs: build: + strategy: + fail-fast: true + matrix: + include: + - os: ubuntu-latest + - os: windows-latest + - os: macos-latest - runs-on: ubuntu-latest - + name: rust-ci ${{ matrix.os }} + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - name: Build run: cargo build --verbose - name: Run tests run: cargo test --verbose + - name: Run check + run: cargo check --verbose + - name: Run clippy + run: cargo clippy --verbose