Skip to content

Bump Swatinem/rust-cache from 2.6.2 to 2.7.0 #28

Bump Swatinem/rust-cache from 2.6.2 to 2.7.0

Bump Swatinem/rust-cache from 2.6.2 to 2.7.0 #28

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
static_analysis:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust Stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: Run format
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- name: Run clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --workspace --all-targets --all-features -- -D warnings
build:
name: Build
strategy:
matrix:
rust: [
1.60.0,
stable,
nightly
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust ${{ matrix.rust }}
uses: actions-rs/[email protected]
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- uses: Swatinem/[email protected]
- name: Build (default)
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose
- name: Build (no-std)
uses: actions-rs/cargo@v1
with:
command: build
args: --verbose --no-default-features
test:
name: Test
strategy:
matrix:
rust: [
stable,
nightly
]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust ${{ matrix.rust }}
uses: actions-rs/[email protected]
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal
- uses: Swatinem/[email protected]
- name: Run tests (std)
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --all-features
- name: Run tests (no-std)
uses: actions-rs/cargo@v1
with:
command: test
args: --verbose --features=derive