1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: nightly
on:
push:
branches:
- main
pull_request:
schedule:
# run CI every day even if no PRs/merges occur
- cron: '0 12 * * *'
jobs:
build:
strategy:
matrix:
platform:
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@master
- name: Set toolchain
uses: actions-rs/toolchain@v1
with:
override: true
components: rustfmt, clippy
- name: Format
run: cargo fmt -- --check
- name: Lint
run: cargo clippy -- -D warnings
- name: Build
run: cargo build
- name: Test
run: cargo test