Skip to content

feat(version): v0.4.1 #69

feat(version): v0.4.1

feat(version): v0.4.1 #69

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
fail-fast: false
matrix:
rust-version: [ stable, beta, nightly ]
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup - Rust Toolchain"
uses: dtolnay/rust-toolchain@21dc36fb71dd22e3317045c0c31a3f4249868b17
with:
toolchain: ${{ matrix.rust-version }}
- name: "Build"
run: |
cargo build --workspace
lint:
runs-on: ubuntu-latest
needs: [ build ]
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup - Rust Toolchain"
uses: dtolnay/rust-toolchain@21dc36fb71dd22e3317045c0c31a3f4249868b17
with:
toolchain: stable
components: clippy,rustfmt
- run: |
# cargo clippy --all-targets -- clippy::all
test:
runs-on: ubuntu-latest
needs: [ build ]
strategy:
matrix:
rust: [stable, beta, nightly]
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: "Setup - Rust Toolchain"
uses: dtolnay/rust-toolchain@21dc36fb71dd22e3317045c0c31a3f4249868b17
with:
components: clippy,rustfmt
toolchain: ${{ matrix.rust }}
- name: Run tests
run: |
cargo test --workspace