-
Notifications
You must be signed in to change notification settings - Fork 8
71 lines (67 loc) · 1.84 KB
/
scala.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
name: Scala CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ./dev-clean
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: '8'
distribution: 'adopt'
- name: Set up dependencies
run: |
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y git g++ cmake bison flex libboost-all-dev python
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y perl minisat curl gnupg2 locales clang-11 wget
- name: Generate test files
run: |
cd benchmarks/llvm
make llsc
cd ../demo-benchmarks
make llsc
cd ../external-lib
make llsc
cd ../oopsla20
make generate_sse
cd ../test-comp/array-examples
make llsc
cd ../../test-comp/array-programs
make llsc
cd ../../klee-posix-fs
make
- name: Install Z3
run: |
cd ../third-party
wget https://github.com/Z3Prover/z3/releases/download/z3-4.8.12/z3-4.8.12-x64-glibc-2.31.zip
unzip z3-4.8.12-x64-glibc-2.31.zip
cd z3-4.8.12-x64-glibc-2.31
sudo cp include/* /usr/include/
sudo cp bin/libz3.so /usr/lib/x86_64-linux-gnu/
sudo ldconfig
- name: Install STP
run: |
cd ../third-party/stp
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig
- name: Generate models
run: sbt 'runMain sai.llsc.GenerateExternal'
- name: Test models
run: sbt 'testOnly sai.llsc.TestGenExternal'
- name: Run tests
run: sbt test