Skip to content

Commit 3dcb014

Browse files
committed
Merge branch 'master' into next
2 parents 03e626d + ece04c7 commit 3dcb014

File tree

165 files changed

+6185
-6065
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+6185
-6065
lines changed

.github/actions/rust-cargo-run/action.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/audit.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Cargo audit
2+
on:
3+
push:
4+
5+
jobs:
6+
security_audit:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: actions-rs/audit-check@v1
11+
with:
12+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/ci.yml

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- master
77
- next
88
pull_request:
9+
merge_group:
910

1011
env:
1112
RUSTFLAGS: -Dwarnings
@@ -15,44 +16,46 @@ jobs:
1516
runs-on: ubuntu-latest
1617
steps:
1718
- name: Checking out
18-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
1920
- name: Running rustfmt
2021
run: make rustfmt
2122

2223
check-clippy:
2324
runs-on: ubuntu-latest
2425
steps:
2526
- name: Checking out
26-
uses: actions/checkout@v2
27+
uses: actions/checkout@v3
2728
- name: Running clippy
2829
run: make check
2930

3031
test:
3132
runs-on: ubuntu-latest
3233
steps:
3334
- 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
3541
- 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
4244
4345
build:
4446
runs-on: ubuntu-latest
4547
strategy:
4648
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' ]
4850
steps:
4951
- 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
5659
- name: Writing bundle
5760
env:
5861
BUILD_FIL_NETWORK: ${{ matrix.network }}
@@ -68,17 +71,16 @@ jobs:
6871
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6972
steps:
7073
- 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
7480
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
8082
- 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
8284
- name: Install demangler
8385
run: cargo install rustfilt
8486
- name: Create coverage report
@@ -109,6 +111,6 @@ jobs:
109111
name: code-coverage-report
110112
path: llvm-show/*
111113
- name: Upload coverage to Codecov
112-
uses: codecov/codecov-action@81cd2dc8148241f03f5839d295e000b8f761e378 # v3.1.0
114+
uses: codecov/codecov-action@d9f34f8cd5cb3b3eb79b3e4b5dae3a16df499a70 # v3.1.1
113115
with:
114116
files: lcov.info

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ target
22
*.wat
33
*.wasm
44
.idea/
5+
.vscode/
56
**/.DS_Store
67
output/*.car

0 commit comments

Comments
 (0)