6
6
- master
7
7
- next
8
8
pull_request :
9
+ merge_group :
9
10
10
11
env :
11
12
RUSTFLAGS : -Dwarnings
@@ -15,44 +16,46 @@ jobs:
15
16
runs-on : ubuntu-latest
16
17
steps :
17
18
- name : Checking out
18
- uses : actions/checkout@v2
19
+ uses : actions/checkout@v3
19
20
- name : Running rustfmt
20
21
run : make rustfmt
21
22
22
23
check-clippy :
23
24
runs-on : ubuntu-latest
24
25
steps :
25
26
- name : Checking out
26
- uses : actions/checkout@v2
27
+ uses : actions/checkout@v3
27
28
- name : Running clippy
28
29
run : make check
29
30
30
31
test :
31
32
runs-on : ubuntu-latest
32
33
steps :
33
34
- name : Checking out
34
- uses : actions/checkout@v2
35
+ uses : actions/checkout@v3
36
+ - name : Setting up cache
37
+ uses : pl-strflt/rust-sccache-action@v1
38
+ env :
39
+ SCCACHE_CACHE_SIZE : 2G
40
+ SCCACHE_DIR : ${{ github.workspace }}/.cache/sccache
35
41
- name : Running tests
36
- uses : ./.github/actions/rust-cargo-run
37
- with :
38
- command : test
39
- args : --locked --all --no-fail-fast --exclude=fil_builtin_actors_bundle
40
- github_token : ${{ secrets.GITHUB_TOKEN }}
41
- save_cache : true
42
+ run : |
43
+ cargo test --locked --all --no-fail-fast --exclude=fil_builtin_actors_bundle
42
44
43
45
build :
44
46
runs-on : ubuntu-latest
45
47
strategy :
46
48
matrix :
47
- network : [ 'mainnet', 'caterpillarnet', 'butterflynet', 'calibrationnet', 'devnet', 'testing', 'testing-fake-proofs', 'wallaby', 'hyperspace', ' devnet-wasm' ]
49
+ network : [ 'mainnet', 'caterpillarnet', 'butterflynet', 'calibrationnet', 'devnet', 'testing', 'testing-fake-proofs', 'wallaby', 'devnet-wasm' ]
48
50
steps :
49
51
- name : Checking out
50
- uses : actions/checkout@v2
51
- - name : Install Rust toolchain
52
- uses : ./.github/actions/rust-cargo-run
53
- with :
54
- command : version
55
- github_token : ${{ secrets.GITHUB_TOKEN }}
52
+ uses : actions/checkout@v3
53
+ - name : Setting up cache
54
+ uses : pl-strflt/rust-sccache-action@v1
55
+ env :
56
+ SCCACHE_CACHE_SIZE : 2G
57
+ SCCACHE_DIR : ${{ github.workspace }}/.cache/sccache
58
+ CACHE_SKIP_SAVE : true
56
59
- name : Writing bundle
57
60
env :
58
61
BUILD_FIL_NETWORK : ${{ matrix.network }}
@@ -68,17 +71,16 @@ jobs:
68
71
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
69
72
steps :
70
73
- name : Checking out
71
- uses : actions/checkout@v2
72
- - name : Install Rust toolchain
73
- uses : ./.github/actions/rust-cargo-run
74
+ uses : actions/checkout@v3
75
+ - name : Setting up cache
76
+ uses : pl-strflt/rust-sccache-action@v1
77
+ env :
78
+ SCCACHE_CACHE_SIZE : 2G
79
+ SCCACHE_DIR : ${{ github.workspace }}/.cache/sccache
74
80
with :
75
- command : version
76
- components : llvm-tools-preview
77
- github_token : ${{ secrets.GITHUB_TOKEN }}
78
- cache_name : cov
79
- save_cache : true
81
+ shared-key : coverage
80
82
- name : Put LLVM tools into the PATH
81
- run : echo "${HOME}/.rustup/toolchains/$(cat rust-toolchain)-x86_64-unknown-linux-gnu /lib/rustlib/x86_64-unknown-linux-gnu/bin" >> $GITHUB_PATH
83
+ run : echo "$(rustc --print sysroot) /lib/rustlib/x86_64-unknown-linux-gnu/bin" >> $GITHUB_PATH
82
84
- name : Install demangler
83
85
run : cargo install rustfilt
84
86
- name : Create coverage report
@@ -109,6 +111,6 @@ jobs:
109
111
name : code-coverage-report
110
112
path : llvm-show/*
111
113
- name : Upload coverage to Codecov
112
- uses : codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0
114
+ uses : codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
113
115
with :
114
116
files : lcov.info
0 commit comments