Skip to content

Fix workflow step description and remove extra rustc flags #13

Fix workflow step description and remove extra rustc flags

Fix workflow step description and remove extra rustc flags #13

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Tests
env:
RUSTFLAGS: "-D warnings -C debuginfo=1"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: Setup build cache
uses: Swatinem/rust-cache@v2
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features --workspace -- -D warnings
- name: Check formatting
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Unit tests
uses: actions-rs/cargo@v1
with:
command: test
args: --workspace