Merge pull request #80 from striezel-stash/actions-checkout-update #42
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "macos-latest", "windows-latest"] | |
rust: ["stable", "beta", "nightly", "1.34.0"] | |
runs-on: ${{matrix.os}} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install rust | |
run: | | |
rustup install ${{matrix.rust}} | |
rustup default ${{matrix.rust}} | |
- name: Test debug | |
run: cargo test --verbose | |
- name: Test release | |
run: cargo test --verbose --release | |
rustfmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install rust | |
run: | | |
rustup install stable | |
rustup default stable | |
rustup component add rustfmt | |
- run: cargo fmt --all -- --check | |
doc: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: cargo doc |