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