Skip to content

Commit 22e52e9

Browse files
committed
Update CI config
1 parent 3d248a0 commit 22e52e9

File tree

4 files changed

+65
-6
lines changed

4 files changed

+65
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,41 @@ name: Deploy
33
on: [push, workflow_dispatch]
44

55
jobs:
6+
build-launcher-22:
7+
runs-on: ubuntu-22.04
8+
strategy:
9+
matrix:
10+
python-version: [ "3.8" ]
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v3
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies
18+
run: |
19+
sudo sysctl kernel.unprivileged_userns_clone=1
20+
sudo apt update
21+
sudo apt install -y openjdk-17-jdk
22+
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/java-17-openjdk-amd64/bin/java 1
23+
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/java-17-openjdk-amd64/bin/javac 1
24+
sudo update-alternatives --set java /usr/lib/jvm/java-17-openjdk-amd64/bin/java
25+
sudo update-alternatives --set javac /usr/lib/jvm/java-17-openjdk-amd64/bin/javac
26+
java -version
27+
javac -version
28+
echo "JAVA_HOME=/usr/lib/jvm/java-17-openjdk-amd64" >> $GITHUB_ENV
29+
echo $JAVA_HOME
30+
python3 -m pip install --upgrade pip
31+
pip3 install -r requirements.txt
32+
- name: Deployment of CV
33+
run: |
34+
DEPLOY_DIR=build make install -j$(nproc)
35+
DEPLOY_DIR=build make install-cif-compiled -j$(nproc)
36+
cp -r docs/examples/sources/ build/
37+
cd build
38+
python3 ./scripts/launch.py -c configs/it.json
39+
grep "it;smg;no_memory_leak_caller;TRUE;SUCCESS" results/report_launches_it_*.csv || exit 1
40+
grep "it;smg;memory_leak_caller;FALSE;SUCCESS" results/report_launches_it_*.csv || exit 1
641
build-launcher:
742
runs-on: ubuntu-latest
843
strategy:
@@ -16,8 +51,12 @@ jobs:
1651
python-version: ${{ matrix.python-version }}
1752
- name: Install dependencies
1853
run: |
54+
sudo sysctl kernel.unprivileged_userns_clone=1
55+
sudo sysctl -w user.max_user_namespaces=10000
56+
sudo apt update
57+
sudo apt install -y openjdk-17-jdk
1958
python3 -m pip install --upgrade pip
20-
pip3 install requests ujson graphviz ply pytest atomicwrites more-itertools pluggy py attrs setuptools six django psycopg2 clade pyyaml pycparser sympy
59+
pip3 install -r requirements.txt
2160
- name: Deployment of CV
2261
run: |
2362
DEPLOY_DIR=build make install -j$(nproc)
@@ -41,7 +80,7 @@ jobs:
4180
- name: Install dependencies
4281
run: |
4382
python3 -m pip install --upgrade pip
44-
pip3 install requests ujson graphviz ply pytest atomicwrites more-itertools pluggy py attrs setuptools six django psycopg2 pycparser sympy
83+
pip3 install -r requirements.txt
4584
- name: Deployment of Benchmark Visualizer
4685
run: |
4786
DEPLOY_DIR=build make install-benchmark-visualizer -j$(nproc)
@@ -62,7 +101,7 @@ jobs:
62101
- name: Install dependencies
63102
run: |
64103
python3 -m pip install --upgrade pip
65-
pip3 install requests ujson graphviz ply pytest atomicwrites more-itertools pluggy py attrs setuptools six django psycopg2 pycparser sympy
104+
pip3 install -r requirements.txt
66105
- name: Deployment of MEA
67106
run: |
68107
DEPLOY_DIR=build make install-mea -j$(nproc)

configs/it.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"scheduler": "local",
2121
"resource limits": {
2222
"CPU time": 0,
23-
"memory size": 3,
23+
"memory size": 0,
2424
"number of cores": 0
2525
}
2626
},

cpa.config

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# CPAchecker tools specified in the following format:
22
# mode;repository;branch;[revision]
33

4-
unreach;https://gitlab.ispras.ru/verification/cpachecker;smg-master;
5-
sync;https://gitlab.ispras.ru/verification/cpachecker;cpalockator-master;
4+
unreach;https://gitlab.ispras.ru/verification/cpachecker;smg-master;

requirements.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Core dependencies
2+
requests
3+
ujson
4+
graphviz
5+
ply
6+
pytest
7+
atomicwrites
8+
pathlib2
9+
more-itertools
10+
pluggy
11+
py
12+
attrs
13+
setuptools
14+
six
15+
django
16+
pyyaml
17+
pycparser
18+
sympy
19+
20+
# Specific versions
21+
clade==3.6

0 commit comments

Comments
 (0)