forked from yearn/tokenized-strategy-foundry-mix
-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (52 loc) · 1.71 KB
/
ci.yaml
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
name: CI
on: [push]
jobs:
foundry-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
submodules: recursive
- uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install forge-std
run: |
forge install foundry-rs/forge-std --no-commit
forge remappings > remappings.txt
- name: Run non-Kontrol tests
run: |
forge test --no-match-path "src/test/kontrol/*" -vvv
- name: Run snapshot without Kontrol tests
run: forge snapshot --no-match-path "src/test/kontrol/*"
formal-verification:
runs-on: ubuntu-latest
needs: foundry-test
steps:
- uses: actions/checkout@master
with:
fetch-depth: 0
submodules: recursive
# Install dependencies for K Framework
- name: Install K Framework
run: |
curl -LO kframework.tar.gz https://github.com/runtimeverification/k/releases/download/v7.1.170/kframework-7.1.170-src.tar.gz
tar -xvzf kframework
cd kframework
export PATH=$PATH:$(pwd)/bin
# Verify KEVM setup
- name: Install KEVM
run: |
curl -LO https://github.com/runtimeverification/evm-semantics/releases/download/v1.0/evm.tar.gz
tar -xvzf evm.tar.gz
cd evm
export PATH=$PATH:$(pwd)/bin
make deps # Install KEVM dependencies
make build # Build KEVM
# Run the formal verification job
- name: Formal Verification with KEVM
run: |
cd evm
# Assuming `verification.k` exists and contains the formal specification
krun verification.k