Skip to content

upload Cargo.lock to repo #15

upload Cargo.lock to repo

upload Cargo.lock to repo #15

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build project
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- nightly
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup ${{ matrix.toolchain }} toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy
- name: Cargo cache
uses: Swatinem/rust-cache@v2
- name: Cargo build
run: cargo build --release
- name: Cargo test
run: cargo test --release
- name: Cargo clippy
run: cargo clippy --release --all-targets -- -D warnings
- name: Cargo fmt
run: cargo fmt -- --check