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