forked from workcraft/workcraft
-
Notifications
You must be signed in to change notification settings - Fork 0
168 lines (128 loc) · 4.23 KB
/
ci.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
name: CI
on: [push, pull_request]
jobs:
linux-build:
strategy:
matrix:
# As of 2024-07-11, ubuntu-24.04 has a problem with 32bit binaries:
# Its kernel is built with 'CONFIG_COMPAT_32BIT_TIME=n'.
# This results in the following segfault for any MPSat and PComp execution:
# The futex facility returned an unexpected error code.
# Aborted (core dumped)
# See details at:
# https://bugs.launchpad.net/ubuntu/+source/linux-signed-azure/+bug/2071445
# https://github.com/actions/runner-images/issues/9977
os: [ubuntu-22.04, ubuntu-20.04]
java-distribution: [temurin, zulu]
java-version: [21, 17]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.java-distribution }}
java-version: ${{ matrix.java-version }}
- name: Assemble Workcraft
run: ./gradlew assemble
- name: Install clasp
run: sudo apt-get install clasp
- name: Run unit tests
uses: coactions/setup-xvfb@v1
with:
run: ./gradlew test
- name: Run integration tests
uses: coactions/setup-xvfb@v1
with:
run: ./ci/run.sh
osx-build:
strategy:
matrix:
os: [macos-14, macos-13, macos-12]
java-distribution: [temurin]
java-version: [21, 17]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.java-distribution }}
java-version: ${{ matrix.java-version }}
- name: Assemble Workcraft
run: ./gradlew assemble
- name: Install clasp
run: brew install clasp
- name: Run unit tests
run: ./gradlew test
- name: Run integration tests (without 32-bit backends)
uses: coactions/setup-xvfb@v1
with:
run: ./ci/run.sh exec help workspace ci/export-* ci/import-* ci/property-* ci/statistics-*
windows-build:
strategy:
matrix:
os: [windows-2022, windows-2019]
java-distribution: [temurin]
java-version: [21, 17]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.java-distribution }}
java-version: ${{ matrix.java-version }}
- name: Assemble Workcraft
run: ./gradlew assemble
- name: Run unit tests
run: ./gradlew test
- name: Run integration tests
run: ./ci/run.sh
shell: bash
code-analysis:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
submodules: recursive
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Run Checkstyle
run: ./gradlew checkstyle
- name: Run PMD checks
run: ./gradlew pmd
- name: Assemble Workcraft
run: ./gradlew assemble
- name: Install clasp
run: sudo apt-get install clasp
- name: Run unit tests
uses: coactions/setup-xvfb@v1
with:
run: ./gradlew test
- name: Run caverage analysis
run: ./gradlew coverall
- name: Integrate with coveralls
uses: coverallsapp/github-action@v2
with:
format: jacoco
# - name: Run a specific unit test
# uses: coactions/setup-xvfb@v1
# with:
# run: ./gradlew :MpsatSynthesisPlugin:test --tests org.workcraft.plugins.mpsat_synthesis.SynthesisCommandsTests.bufferTechnologyMappingSynthesis
# - name: Setup tmate session for remote debugging in case of failure
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3