Some checks failed
Matrix / Clippy check (pull_request) Failing after 6s
Matrix / Build - beta (pull_request) Successful in 6s
Matrix / Test - stable (pull_request) Successful in 5s
Matrix / Format (pull_request) Failing after 13s
Matrix / Test - nightly (pull_request) Successful in 15s
Matrix / Test - beta (pull_request) Successful in 15s
Matrix / Build - nightly (pull_request) Successful in 15s
Matrix / Build - stable (pull_request) Successful in 18s
65 lines
1.3 KiB
YAML
65 lines
1.3 KiB
YAML
name: Matrix
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
|
|
jobs:
|
|
format:
|
|
name: Format
|
|
runs-on: native
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: rustfmt, clippy
|
|
- run: cargo fmt --all -- --check
|
|
|
|
clippy:
|
|
name: Clippy check
|
|
runs-on: native
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: dtolnay/rust-toolchain@stable
|
|
with:
|
|
components: rustfmt, clippy
|
|
- run: cargo clippy --all-targets -- -D warnings
|
|
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
rust:
|
|
- stable
|
|
- beta
|
|
- nightly
|
|
|
|
name: Build - ${{matrix.rust}}
|
|
runs-on: native
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: ${{matrix.rust}}
|
|
components: rustfmt, clippy
|
|
- run: cargo build
|
|
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
rust:
|
|
- stable
|
|
- beta
|
|
- nightly
|
|
|
|
name: Test - ${{matrix.rust}}
|
|
runs-on: native
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- uses: dtolnay/rust-toolchain@master
|
|
with:
|
|
toolchain: ${{matrix.rust}}
|
|
components: rustfmt, clippy
|
|
- run: cargo build
|
|
|