-
Notifications
You must be signed in to change notification settings - Fork 13
169 lines (139 loc) · 4.68 KB
/
system_test.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
name: 'system test'
on:
pull_request:
branches: [ main ]
jobs:
fetch-branch:
name: 'Fetch branch name'
runs-on: ubuntu-latest
steps:
- id: identify
run: echo "##[set-output name=branch;]$(echo ${GITHUB_HEAD_REF#refs/heads/})"
outputs:
branch: ${{ steps.identify.outputs.branch }}
skip_duplicate:
name: 'Skip Job?'
continue-on-error: true
runs-on: ubuntu-latest
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
paths: '["src/adiar/**", ".github/workflows/system_test.yml"]'
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
run-n:
name: 'System Test: ${{ matrix.name }}'
runs-on: ubuntu-latest
needs: [fetch-branch, skip_duplicate]
if: ${{ needs.skip_duplicate.outputs.should_skip != 'true' && github.event.pull_request.draft != true }}
strategy:
fail-fast: false
matrix:
include:
- name: 'Knights Tour (ZDD)'
exec: adiar_knights_tour_zdd
N: '8 9 10 11'
- name: 'Queens (BDD)'
exec: adiar_queens_bdd
N: '8 9 10 11 12 13 14'
- name: 'Queens (ZDD)'
exec: adiar_queens_zdd
N: '8 9 10 11 12 13 14'
- name: 'Tic-Tac-Toe (BDD)'
exec: adiar_tic_tac_toe_bdd
N: '18 19 20 21 22'
- name: 'Tic-Tac-Toe (ZDD)'
exec: adiar_tic_tac_toe_zdd
N: '18 19 20 21 22'
steps:
- name: Git | checkout SSoelvsten/BDD-Benchmark
uses: actions/checkout@v2
with:
repository: 'ssoelvsten/bdd-benchmark'
submodules: 'recursive'
fetch-depth: '0'
- name: Git | checkout pull request
run: |
cd external/adiar
git remote set-url origin https://github.com/${{ github.event.pull_request.head.repo.full_name }}.git
git fetch
git checkout ${{ needs.fetch-branch.outputs.branch }}
git submodule update --init --recursive
git status
- name: Apt | install boost
run: |
sudo apt update
sudo apt install libboost-all-dev
- name: CMake | build
run: |
cmake -E make_directory build
cd build
cmake ../ -D CMAKE_BUILD_TYPE=Release && cmake --build . --target ${{ matrix.exec }}
- name: Run Benchmark
run: for n in ${{ matrix.N }}; do build/src/${{ matrix.exec }} -N $n -M 1024; done
run-picotrav:
name: 'System Test: Picotrav (${{ matrix.name }})'
runs-on: ubuntu-latest
needs: [fetch-branch, skip_duplicate]
if: ${{ needs.skip_duplicate.outputs.should_skip != 'true' }}
strategy:
fail-fast: false
matrix:
include:
- name: 'arithmetic'
circuits: 'adder'
order: 'LEVEL_DF'
- name: 'random_control'
circuits: 'cavlc ctrl dec int2float i2c priority router'
order: 'INPUT'
steps:
- name: Git | checkout SSoelvsten/BDD-Benchmark
uses: actions/checkout@v2
with:
repository: 'ssoelvsten/bdd-benchmark'
submodules: 'recursive'
fetch-depth: '0'
- name: Git | checkout pull request
run: |
cd external/adiar
git remote set-url origin https://github.com/${{ github.event.pull_request.head.repo.full_name }}.git
git fetch
git checkout ${{ needs.fetch-branch.outputs.branch }}
git submodule update --init --recursive
git status
- name: Apt | install boost
run: |
sudo apt update
sudo apt install libboost-all-dev
- name: CMake | build
run: |
cmake -E make_directory build
cd build
cmake ../ -D CMAKE_BUILD_TYPE=Release && cmake --build . --target adiar_picotrav_bdd
- name: Run Benchmarks
run: |
for spec in ${{ matrix.circuits }} ; do \
for opt in benchmarks/epfl/best_results/**/$spec* ; do \
build/src/adiar_picotrav_bdd -f benchmarks/epfl/${{ matrix.name }}/$spec.blif -f $opt -o ${{ matrix.order }} -M 1024 ; \
done ; \
done
run-dummy:
name: 'System Test: ${{ matrix.name }}'
runs-on: ubuntu-latest
needs: [fetch-branch, skip_duplicate]
if: ${{ needs.skip_duplicate.outputs.should_skip == 'true' || github.event.pull_request.draft == true }}
strategy:
matrix:
include:
- name: 'Knights Tour (ZDD)'
- name: 'Queens (BDD)'
- name: 'Queens (ZDD)'
- name: 'Tic-Tac-Toe (BDD)'
- name: 'Tic-Tac-Toe (ZDD)'
- name: 'Picotrav (arithmetic)'
- name: 'Picotrav (random_control)'
steps:
- name: Echo skip
run: |
echo "Running benchmark is skipped"