Skip to content

Commit

Permalink
Merge pull request #44 from ikatson/rust-matrix
Browse files Browse the repository at this point in the history
Github action to check multiple rust versions
  • Loading branch information
ikatson authored Dec 7, 2023
2 parents ec63e1c + 1bf3c10 commit 2fdea72
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,31 @@ name: Run tests

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

env:
CARGO_TERM_COLOR: always

jobs:
build:

check-rust-compat:
runs-on: ubuntu-latest

strategy:
matrix:
rust_version: ["1.72", "1.73", "1.74"]
steps:
- name: rustup toolchain install ${{ matrix.rust_version }}
run: |
rustup toolchain install ${{ matrix.rust_version }}
- uses: actions/checkout@v2
- run: rustup override set ${{ matrix.rust_version }}
- name: cargo check
run: cargo check
test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1
- name: Run tests
run: cargo test
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v1
- name: Run tests
run: cargo test

0 comments on commit 2fdea72

Please sign in to comment.