Skip to content

Commit df486b5

Browse files
committed
add CI
1 parent 19b3612 commit df486b5

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
name: CI Build
3+
4+
on:
5+
push:
6+
branches: [main]
7+
pull_request:
8+
branches: [main]
9+
10+
jobs:
11+
build:
12+
name: ${{ matrix.name }}
13+
runs-on: ubuntu-24.04
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v5
17+
with:
18+
submodules: recursive
19+
20+
- name: Install libraries
21+
run: sudo apt-get update && sudo apt-get install -y build-essential cmake bison re2c python3-pip
22+
23+
- name: Install gringo
24+
run: |
25+
python3 -m pip install clingo
26+
pip install networkx
27+
28+
- name: Download normalization
29+
run: |
30+
wget https://research.ics.aalto.fi/software/asp/lp2normal/binary-x86-64/lp2normal-2.27
31+
chmod +x lp2normal-2.27
32+
33+
- name: Run build
34+
run: |
35+
chmod +x build.sh
36+
./build.sh
37+
38+
- name: Sample SharpASP (std) Run
39+
run: |
40+
python run-sharpasp.py -i graph_reach.random-graph-20-3-5.zip.lp -c std
41+
42+
- name: Sample SharpASP (ganak) Run
43+
run: |
44+
python run-sharpasp.py -i graph_reach.random-graph-20-3-5.zip.lp -c ganak
45+
46+
- name: Sample SharpASP (d4) Run
47+
run: |
48+
python run-sharpasp.py -i graph_reach.random-graph-20-3-5.zip.lp -c d4

0 commit comments

Comments
 (0)