-
Notifications
You must be signed in to change notification settings - Fork 14
93 lines (87 loc) · 2.03 KB
/
ci.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: CI builds
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: true
RUSTC_WRAPPER: sccache
jobs:
build-rust:
runs-on: ${{ matrix.os }}
name: Build rust crates on ${{ matrix.os }}
strategy:
matrix:
os:
- macos-14
- ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: ./.github/actions/common.yml
with:
lfs: false
cache_key: ${{ matrix.os }}_build
- name: Run build
run: cargo build
- name: Upload build outputs
uses: actions/upload-artifact@v4
with:
name: build_target
path: target
retention-days: 0
test-rust:
needs:
- build-rust
runs-on: ${{ matrix.os }}
name: Test rust crates on ${{ matrix.os }}
strategy:
matrix:
os:
- macos-14
- ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
lfs: true
- uses: ./.github/actions/common.yml
with:
lfs: true
cache_key: ${{ matrix.os }}_test
- name: Download build target
uses: actions/download-artifact@v4
with:
name: build_target
- name: Run tests
run: ./scripts/test.sh
lint-rust:
needs:
- build-rust
runs-on: ${{ matrix.os }}
name: Test rust crates on ${{ matrix.os }}
strategy:
matrix:
os:
- macos-14
- ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: ./.github/actions/common.yml
with:
lfs: true
cache_key: ${{ matrix.os }}_lint
- name: Download build target
uses: actions/download-artifact@v4
with:
name: build_target
- name: Run clippy
run: ./scripts/clippy.sh
dart:
name: Build dart
uses: ./.github/actions/dart.yml