-
Notifications
You must be signed in to change notification settings - Fork 84
85 lines (77 loc) · 2.65 KB
/
sanity-checks.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
on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
name: Sanity checks
concurrency:
group: 'tests-${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
permissions:
id-token: write
contents: read
jobs:
test-n-lint:
if: ${{ !github.event.pull_request.draft }}
timeout-minutes: 90
name: ${{ matrix.target }}
runs-on: ubuntu-latest-8-cores
strategy:
matrix:
target: [ test-general, test-integration,
lint-fmt, lint-clippy, cargo-build, docs-build, lint-taplo ]
steps:
- name: Check out code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b #4.1.4
with:
submodules: 'recursive'
- name: Prep build
uses: ./.github/actions/prep-ubuntu
with:
cache: enabled
# Cache needs Google credentials:
GWIP: ${{ secrets.GWIP_SCCACHE }}
GSA: ${{ secrets.GSA_SCCACHE }}
# Required for integration tests evm interaction
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Debug GitHub Environment Variables
shell: bash
run: |
echo "SCCACHE_GCS_BUCKET=${SCCACHE_GCS_BUCKET}"
echo "SCCACHE_GCS_RW_MODE=${SCCACHE_GCS_RW_MODE}"
echo "RUSTC_WRAPPER=${RUSTC_WRAPPER}"
echo "CARGO_INCREMENTAL=${CARGO_INCREMENTAL}"
- name: Runing cargo ${{ matrix.target }}
run: ./ci/run-check.sh
env:
TARGET: ${{ matrix.target }}
benchmark-check:
if: ${{ !github.event.pull_request.draft }}
# timeout-minutes: 90 # <- Not needed as ubunt-latest is free of charge
name: bench-check-${{ matrix.runtime }}
runs-on: ubuntu-latest #-4-cores
strategy:
matrix:
runtime: [ centrifuge ]
steps:
- name: Check out code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b #4.1.4
with:
submodules: 'recursive'
- name: Prep build
uses: ./.github/actions/prep-ubuntu
with:
cache: enabled
GWIP: ${{ secrets.GWIP_SCCACHE }}
GSA: ${{ secrets.GSA_SCCACHE }}
- name: Debug GitHub Environment Variables
shell: bash
run: |
echo "SCCACHE_GCS_BUCKET=${SCCACHE_GCS_BUCKET}"
echo "SCCACHE_GCS_RW_MODE=${SCCACHE_GCS_RW_MODE}"
echo "RUSTC_WRAPPER=${RUSTC_WRAPPER}"
echo "CARGO_INCREMENTAL=${CARGO_INCREMENTAL}"
- name: Runing cargo ${{ matrix.target }}
run: ./ci/run-check.sh
env:
TARGET: benchmark-check
RUNTIME: ${{ matrix.runtime }}