-
Notifications
You must be signed in to change notification settings - Fork 65
52 lines (41 loc) · 1000 Bytes
/
build.yml
File metadata and controls
52 lines (41 loc) · 1000 Bytes
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
name: Foundry Build CI/CD
on:
push:
branches:
- main
pull_request:
branches:
- main
- 'v*'
workflow_dispatch:
jobs:
check:
strategy:
fail-fast: true
name: Foundry project
runs-on: ubuntu-latest
defaults:
run:
working-directory: evm
env:
DCAP_RISCZERO_IMAGE_ID: ${{ vars.DCAP_RISCZERO_IMAGE_ID }}
DCAP_SP1_VKEY: ${{ vars.DCAP_SP1_VKEY }}
steps:
- uses: actions/checkout@v5
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: stable
- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build
- name: Run Forge tests
run: |
forge test -vvv
id: test
- name: Run snapshot and Generate Summary
run: NO_COLOR=1 forge snapshot --gas-report >> $GITHUB_STEP_SUMMARY