From c6609056b2a598d67f955fbd1a50ec59159aa6c8 Mon Sep 17 00:00:00 2001 From: rhysd Date: Sun, 19 Jun 2022 20:59:53 +0900 Subject: [PATCH] run CI on Windows and macOS as well as Linux --- .github/workflows/ci.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 81acb1f..6d38f15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,7 +3,11 @@ on: [push, pull_request] jobs: unit-test: - runs-on: ubuntu-latest + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + fail-fast: true + runs-on: ${{ matrix.os }} env: CARGO_TERM_COLOR: always steps: @@ -15,6 +19,9 @@ jobs: override: true - uses: Swatinem/rust-cache@v1 - run: cargo test -- --skip src/lib.rs + if: ${{ matrix.os != 'windows-latest' }} + - run: cargo test -- --skip src\lib.rs + if: ${{ matrix.os == 'windows-latest' }} lint: runs-on: ubuntu-latest env: