Skip to content

ci: add nix ci that uploads build result to cachix #80

ci: add nix ci that uploads build result to cachix

ci: add nix ci that uploads build result to cachix #80

Workflow file for this run

name: Rust
on: [ push, pull_request ]
jobs:
check:
name: Check and test Rust code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
components: rustfmt, clippy
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
- name: Cargo Check
uses: actions-rs/cargo@v1
with:
command: check
- name: Cargo Tests
uses: actions-rs/cargo@v1
with:
command: test
- name: Cargo Format Check
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Clippy Check
uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings