-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (44 loc) · 1.66 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
name: CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions: read-all
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# See https://nodejs.org/en/about/releases/
node-version: [20.x]
env:
SOL_AST_COMPILER_CACHE: ${{ github.workspace }}/.compiler_cache
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
# See https://souffle-lang.github.io/source
# See https://github.com/souffle-lang/souffle/releases
- name: Install Soufflé
run: |
sudo apt update && sudo apt-install -y libffi7 mcpp
wget https://github.com/souffle-lang/souffle/releases/download/2.4.1/x86_64-ubuntu-2004-souffle-2.4.1-Linux.deb -O /tmp/souffle.deb
sudo dpkg -i /tmp/souffle.deb
souffle --version
- name: Install and lint
run: |
npm install
npm link
npm run lint
sol-ast-compile --version
# See https://github.com/ethereum/solc-bin
# See https://binaries.soliditylang.org/
- name: Pre-download compilers from historical builds archive
run: sol-ast-compile --download-compilers native wasm
- name: Test and generate coverage report
run: npm test