1
- # DO NOT EDIT THIS FILE.
2
- # Instead, edit the jsonpatch file (actually YAML) in .github/rust-ci-patch.yaml
3
- # For docs, see github-actions in the IronCoreLabs/depot repo.
4
-
5
1
name : Rust CI
6
- concurrency :
7
- group : ${{ github.workflow }}-${{ github.ref }}
8
- cancel-in-progress : true
9
2
' on ' :
10
3
push :
11
4
branches :
@@ -14,39 +7,11 @@ concurrency:
14
7
workflow_dispatch : null
15
8
schedule :
16
9
- cron : 0 14 * * 1
17
- env :
18
- MIN_COVERAGE : ' 24'
19
10
jobs :
20
- format :
21
- runs-on : ubuntu-22.04
22
- steps :
23
- - uses : actions/checkout@v3
24
- - uses : IronCoreLabs/rust-toolchain@v1
25
- with :
26
- components : rustfmt
27
- - run : cargo fmt --all -- --check
28
- - name : Install cargo-sort
29
- uses :
IronCoreLabs/[email protected]
30
- with :
31
- crate : cargo-sort
32
- accesskey : AKIAU2WBY6VDTC563V7G
33
- secretkey : ${{ secrets.TOOL_CACHE_SECRET_KEY }}
34
- os : ubuntu-22.04
35
- version : latest
36
- - run : cargo sort --check
37
- - name : Cancel workflow
38
- if : failure()
39
-
40
- clippy :
41
- name : Clippy
42
- runs-on : ubuntu-22.04
43
- steps :
44
- - uses : actions/checkout@v3
45
- - uses : IronCoreLabs/rust-toolchain@v1
46
- with :
47
- components : clippy
48
- - uses : actions-rs/cargo@v1
49
- if : env.clippy_args != ''
50
- with :
51
- command : clippy
52
- args : ${{ env.clippy_args }}
11
+ rust-ci :
12
+ uses : IronCoreLabs/workflows/.github/workflows/rust-ci.yaml@rust-ci-v0
13
+ with :
14
+ # only run build, only on the toolchain version
15
+ # typescript runs the real tests
16
+ test_matrix_include : ' [{ rust_version: "", build_only: true }]'
17
+ secrets : inherit
0 commit comments