From 4020e3f33f42d9ee9a4f373fb5222c12f419bd24 Mon Sep 17 00:00:00 2001 From: Dorival Pedroso Date: Tue, 10 Oct 2023 11:06:43 +1000 Subject: [PATCH] Add GH Action to test on Windows and macOS --- .github/workflows/windows_and_macos.yml | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/windows_and_macos.yml diff --git a/.github/workflows/windows_and_macos.yml b/.github/workflows/windows_and_macos.yml new file mode 100644 index 0000000..71116f0 --- /dev/null +++ b/.github/workflows/windows_and_macos.yml @@ -0,0 +1,30 @@ +name: Windows & macOS + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + + matrix: + os: + - macos-latest + - windows-latest + + steps: + - uses: actions/checkout@v3 + - uses: Swatinem/rust-cache@v2 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose