-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (61 loc) · 2.3 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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:
SOUFFLE_DEB: https://github.com/souffle-lang/souffle/releases/download/2.4.1/x86_64-ubuntu-2004-souffle-2.4.1-Linux.deb
SOL_AST_COMPILER_CACHE: ${{ github.workspace }}/.compiler_cache
SOLC_TYPED_AST_DIR: ${{ github.workspace }}/solc-typed-ast/src
steps:
- name: Checkout sol-datalog
uses: actions/checkout@v4
with:
path: main
- name: Checkout solc-typed-ast
uses: actions/checkout@v4
with:
repository: ConsenSys/solc-typed-ast
path: solc-typed-ast
- name: Use NodeJS ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: main/package-lock.json
# 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 build-essential
wget $SOUFFLE_DEB -O /tmp/souffle.deb
sudo dpkg -i /tmp/souffle.deb
souffle --version
- name: Install solc-typed-ast
run: |
cd solc-typed-ast
npm install
- name: Install and lint
run: |
cd main
npm install
npm link
npm run lint
sol-datalog-cli --version
# See https://github.com/ethereum/solc-bin
# See https://binaries.soliditylang.org/
- name: Pre-download compilers from historical builds archive
run: sol-datalog-cli --download-compilers native wasm
- name: Test and generate coverage report
run: |
cd main
npm test