-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (37 loc) · 864 Bytes
/
test.yml
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: Check changes
on:
push:
branches:
- "**"
- "*"
pull_request:
branches:
- "master"
- "main"
env:
CARGO_TERM_COLOR: always
jobs:
make_ci:
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- "1.83"
# - beta
# - nightly
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
# target/
key: ${{ runner.os }}-cargo-${{ matrix.toolchain }} # ${{ hashFiles('**/Cargo.lock') }}
- run:
rustup update ${{ matrix.toolchain }} && rustup default ${{
matrix.toolchain }} && rustup component add clippy rustfmt
- run: make ci