rust-nix-template/.github/workflows/ci.yml

25 lines
548 B
YAML
Raw Normal View History

2021-04-08 19:15:49 +02:00
on: [push]
name: CI
2021-04-08 04:53:30 +02:00
jobs:
2021-04-08 19:15:49 +02:00
check:
name: Rust project
2021-04-08 04:53:30 +02:00
runs-on: ubuntu-latest
steps:
2021-04-08 19:15:49 +02:00
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
# `cargo check` command here will use installed `nightly`
# as it is set as an "override" for current directory
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check