From 863734415f092cd3c9618a0fbafbe7135996c6a9 Mon Sep 17 00:00:00 2001 From: Marcelo Hernandez Date: Thu, 15 Feb 2024 15:46:14 -0500 Subject: [PATCH] ci: add windows and macos + formatting --- .github/workflows/rust.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 416194c..969f9cf 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,23 +1,27 @@ -name: Rust +name: Rust build & tests on: pull_request: push: branches: - - "master" + - "master" tags: - - '*' + - "*" env: CARGO_TERM_COLOR: always jobs: - build: - runs-on: ubuntu-latest + test: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] steps: - - uses: actions/checkout@v3 - - name: Build - run: cargo build --locked --verbose - - name: Run tests - run: cargo test --locked --verbose + - uses: actions/checkout@v4 + - name: Build + run: cargo build --locked --verbose + - name: Run tests + run: cargo test --locked --verbose