-
Notifications
You must be signed in to change notification settings - Fork 53
72 lines (56 loc) · 1.63 KB
/
check.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Cargo Check
on:
push:
branches:
- dev
- stage
- main
jobs:
check:
runs-on:
labels: movement-runner
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
submodules: 'recursive'
token: ${{ secrets.CI_PAT }}
# for testing purposes
- name: Trigger test
if: false
uses: ./.github/actions/trigger-workflow
with:
workflowFileName: test.yml
token: ${{ secrets.CI_PAT }}
# for testing purposes
- name: Trigger release
if: false
uses: ./.github/actions/trigger-workflow
with:
workflowFileName: release.yml
token: ${{ secrets.CI_PAT }}
- name: Setup
uses: ./.github/actions/setup-linux-x86_64
- name: Cache cargo registry
uses: actions/cache@v2
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v2
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-git-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v2
with:
path: ./m1/target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Run Cargo Check
working-directory: ./m1
run: cargo check
- name: Trigger test
uses: ./.github/actions/trigger-workflow
with:
workflowFileName: test.yml
token: ${{ secrets.CI_PAT }}