-
Notifications
You must be signed in to change notification settings - Fork 79
54 lines (48 loc) · 1.37 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
name: Continuous integration
on:
push:
branches:
- master
pull_request:
merge_group:
env:
RUSTFLAGS: -Dwarnings
CARGO_INCREMENTAL: 0 # Speeds up the build (no cache) and reduces disk space!
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- name: Checking out
uses: actions/checkout@v3
- name: Running rustfmt
run: make rustfmt
check-clippy:
runs-on: ubuntu-latest
steps:
- name: Checking out
uses: actions/checkout@v3
- name: Running clippy
run: make check
test:
runs-on: ${{ fromJSON(github.repository == 'filecoin-project/builtin-actors' && '["self-hosted", "linux", "x64", "4xlarge"]' || '"ubuntu-latest"') }}
steps:
- name: Checking out
uses: actions/checkout@v3
- if: env.RUNNER_ENVIRONMENT != 'github-hosted'
uses: dtolnay/rust-toolchain@stable
- name: Running tests
run: |
cargo test --locked --all --no-fail-fast --exclude=fil_builtin_actors_bundle
build:
runs-on: ubuntu-latest
strategy:
matrix:
network: [ 'mainnet', 'caterpillarnet', 'butterflynet', 'calibrationnet', 'devnet', 'testing', 'testing-fake-proofs' ]
steps:
- name: Checking out
uses: actions/checkout@v3
- name: Writing bundle
env:
BUILD_FIL_NETWORK: ${{ matrix.network }}
run: |
cargo run --locked -- -o output/builtin-actors.car