qoi/.github/workflows/ci.yml

38 lines
1 KiB
YAML
Raw Normal View History

2022-01-02 22:18:33 +00:00
on:
push:
branches: [master]
pull_request:
branches: [master]
name: CI
env:
CARGO_TERM_COLOR: always
HOST: x86_64-unknown-linux-gnu
RUSTFLAGS: "-D warnings"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
2022-10-16 23:42:55 +00:00
rust: [stable, beta, nightly, 1.61.0] # MSRV=1.61
2022-01-02 22:18:33 +00:00
steps:
- uses: actions/checkout@v2
2022-01-05 14:26:05 +00:00
with: {submodules: true}
2022-01-02 22:18:33 +00:00
- uses: actions-rs/toolchain@v1
with: {profile: minimal, toolchain: '${{ matrix.rust }}', override: true}
- run: cargo test
2022-01-03 12:59:24 +00:00
reference:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
2022-01-05 14:26:05 +00:00
with: {submodules: true}
2022-01-03 12:59:24 +00:00
- uses: actions-rs/toolchain@v1
with: {profile: minimal, toolchain: stable, override: true}
- run: cargo test --features=reference
2022-01-02 22:18:33 +00:00
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
2022-01-03 12:59:24 +00:00
with: {profile: minimal, toolchain: beta, override: true, components: clippy}
2022-01-02 22:18:33 +00:00
- run: cargo clippy