@@ -15,19 +15,13 @@ jobs:
15
15
#
16
16
name : Generate package tag
17
17
runs-on : ubuntu-latest
18
- env :
19
- PACKAGE_NAME : cbmc-latest
20
- VERSION_SCRIPT : .github/workflows/version.py
21
18
outputs :
22
19
time : ${{ steps.time.outputs.time }}
23
20
sha : ${{ steps.sha.outputs.sha }}
24
21
runid : ${{ steps.runid.outputs.runid }}
25
22
runnum : ${{ steps.runnum.outputs.runnum }}
26
- name : ${{ env.PACKAGE_NAME }}
27
23
cbmc_version : ${{ steps.version.outputs.cbmc_version }}
28
24
pkg_version : ${{ steps.version.outputs.pkg_version }}
29
- opentag : ${{ steps.opentag.outputs.opentag }}
30
- closedtag : ${{ steps.closedtag.outputs.closedtag }}
31
25
steps :
32
26
33
27
- name : Checkout the repository
@@ -69,57 +63,17 @@ jobs:
69
63
echo CBMC_VERSION = ${{ steps.version.outputs.cbmc_version }}
70
64
echo PKG_VERSION = ${{ steps.version.outputs.pkg_version }}
71
65
72
- Ubuntu16_Stable :
66
+ Ubuntu16 :
73
67
name : Ubuntu 16 cbmc package
74
68
runs-on : ubuntu-16.04
75
69
needs : Tags
76
70
env :
77
- OS : xenial
78
71
PKG_VERSION : ${{needs.Tags.outputs.pkg_version}}
79
72
CBMC_VERSION : ${{needs.Tags.outputs.cbmc_version}}
80
- TIME : ${{needs.Tags.outputs.time}}
81
- SHA : ${{needs.Tags.outputs.sha}}
82
-
83
- PACKAGE_STABLE_NAME : cbmc_${{needs.Tags.outputs.pkg_version}}~xenial_amd64.deb
84
- ARTIFACT_STABLE_NAME : Ubuntu16 cbmc ${{needs.Tags.outputs.pkg_version}} xenial ${{needs.Tags.outputs.time}} ${{needs.Tags.outputs.sha}} ${{needs.Tags.outputs.runid}}
85
-
73
+ PACKAGE_NAME : cbmc_${{needs.Tags.outputs.pkg_version}}~xenial_amd64.deb
74
+ ARTIFACT_NAME : Ubuntu16 cbmc ${{needs.Tags.outputs.pkg_version}} xenial ${{needs.Tags.outputs.time}} ${{needs.Tags.outputs.sha}} ${{needs.Tags.outputs.runid}}
86
75
SCRIPT_DIR : .github/workflows/debian
87
- steps :
88
-
89
- - name : Checkout the repository
90
- uses : actions/checkout@v2
91
-
92
- - name : Update the submodules
93
- run : git submodule update --init
94
76
95
- - name : Create the package
96
- run : |
97
- cp -r . /tmp/cbmc-${CBMC_VERSION}
98
- cp ${SCRIPT_DIR}/Makefile ${SCRIPT_DIR}/changelog ${SCRIPT_DIR}/surefire ${SCRIPT_DIR}/64bit_regression_tests.patch /tmp
99
- make -C /tmp GITHUB=1 STABLE=1 CBMC_VERSION=${CBMC_VERSION} PKG_VERSION=${PKG_VERSION}
100
- mv /tmp/*.deb ${PACKAGE_STABLE_NAME}
101
-
102
- - name : Upload the package
103
- uses : actions/upload-artifact@v1
104
- with :
105
- name : ${{ env.ARTIFACT_STABLE_NAME }}
106
- path : ${{ env.PACKAGE_STABLE_NAME }}
107
-
108
- Ubuntu16_Latest :
109
- name : Ubuntu 16 cbmc-latest package
110
- runs-on : ubuntu-16.04
111
- needs : Tags
112
- env :
113
- OS : xenial
114
- PKG_VERSION : ${{needs.Tags.outputs.pkg_version}}
115
- CBMC_VERSION : ${{needs.Tags.outputs.cbmc_version}}
116
- TIME : ${{needs.Tags.outputs.time}}
117
- SHA : ${{needs.Tags.outputs.sha}}
118
-
119
- PACKAGE_LATEST_NAME : cbmc-latest_${{needs.Tags.outputs.pkg_version}}~xenial_amd64.deb
120
- ARTIFACT_LATEST_NAME : Ubuntu16 cbmc-latest ${{needs.Tags.outputs.pkg_version}} xenial ${{needs.Tags.outputs.time}} ${{needs.Tags.outputs.sha}} ${{needs.Tags.outputs.runid}}
121
-
122
- SCRIPT_DIR : .github/workflows/debian
123
77
steps :
124
78
125
79
- name : Checkout the repository
@@ -132,66 +86,26 @@ jobs:
132
86
run : |
133
87
cp -r . /tmp/cbmc-${CBMC_VERSION}
134
88
cp ${SCRIPT_DIR}/Makefile ${SCRIPT_DIR}/changelog ${SCRIPT_DIR}/surefire ${SCRIPT_DIR}/64bit_regression_tests.patch /tmp
135
- make -C /tmp GITHUB=1 STABLE= CBMC_VERSION=${CBMC_VERSION} PKG_VERSION=${PKG_VERSION}
136
- mv /tmp/*.deb ${PACKAGE_LATEST_NAME }
89
+ make -C /tmp GITHUB=1 STABLE=1 CBMC_VERSION=${CBMC_VERSION} PKG_VERSION=${PKG_VERSION}
90
+ mv /tmp/*.deb ${PACKAGE_NAME }
137
91
138
92
- name : Upload the package
139
93
uses : actions/upload-artifact@v1
140
94
with :
141
- name : ${{ env.ARTIFACT_LATEST_NAME }}
142
- path : ${{ env.PACKAGE_LATEST_NAME }}
95
+ name : ${{ env.ARTIFACT_NAME }}
96
+ path : ${{ env.PACKAGE_NAME }}
143
97
144
- Ubuntu18_Stable :
98
+ Ubuntu18 :
145
99
name : Ubuntu 18 cbmc package
146
100
runs-on : ubuntu-18.04
147
101
needs : Tags
148
102
env :
149
- OS : bionic
150
103
PKG_VERSION : ${{needs.Tags.outputs.pkg_version}}
151
104
CBMC_VERSION : ${{needs.Tags.outputs.cbmc_version}}
152
- TIME : ${{needs.Tags.outputs.time}}
153
- SHA : ${{needs.Tags.outputs.sha}}
154
-
155
- PACKAGE_STABLE_NAME : cbmc_${{needs.Tags.outputs.pkg_version}}~bionic_amd64.deb
156
- ARTIFACT_STABLE_NAME : Ubuntu18 cbmc ${{needs.Tags.outputs.pkg_version}} bionic ${{needs.Tags.outputs.time}} ${{needs.Tags.outputs.sha}} ${{needs.Tags.outputs.runid}}
157
-
105
+ PACKAGE_NAME : cbmc_${{needs.Tags.outputs.pkg_version}}~bionic_amd64.deb
106
+ ARTIFACT_NAME : Ubuntu18 cbmc ${{needs.Tags.outputs.pkg_version}} bionic ${{needs.Tags.outputs.time}} ${{needs.Tags.outputs.sha}} ${{needs.Tags.outputs.runid}}
158
107
SCRIPT_DIR : .github/workflows/debian
159
- steps :
160
108
161
- - name : Checkout the repository
162
- uses : actions/checkout@v2
163
-
164
- - name : Update the submodules
165
- run : git submodule update --init
166
-
167
- - name : Create the package
168
- run : |
169
- cp -r . /tmp/cbmc-${CBMC_VERSION}
170
- cp ${SCRIPT_DIR}/Makefile ${SCRIPT_DIR}/changelog ${SCRIPT_DIR}/surefire ${SCRIPT_DIR}/64bit_regression_tests.patch /tmp
171
- make -C /tmp GITHUB=1 STABLE=1 CBMC_VERSION=${CBMC_VERSION} PKG_VERSION=${PKG_VERSION}
172
- mv /tmp/*.deb ${PACKAGE_STABLE_NAME}
173
-
174
- - name : Upload the package
175
- uses : actions/upload-artifact@v1
176
- with :
177
- name : ${{ env.ARTIFACT_STABLE_NAME }}
178
- path : ${{ env.PACKAGE_STABLE_NAME }}
179
-
180
- Ubuntu18_Latest :
181
- name : Ubuntu 18 cbmc-latest package
182
- runs-on : ubuntu-18.04
183
- needs : Tags
184
- env :
185
- OS : bionic
186
- PKG_VERSION : ${{needs.Tags.outputs.pkg_version}}
187
- CBMC_VERSION : ${{needs.Tags.outputs.cbmc_version}}
188
- TIME : ${{needs.Tags.outputs.time}}
189
- SHA : ${{needs.Tags.outputs.sha}}
190
-
191
- PACKAGE_LATEST_NAME : cbmc-latest_${{needs.Tags.outputs.pkg_version}}~bionic_amd64.deb
192
- ARTIFACT_LATEST_NAME : Ubuntu18 cbmc-latest ${{needs.Tags.outputs.pkg_version}} bionic ${{needs.Tags.outputs.time}} ${{needs.Tags.outputs.sha}} ${{needs.Tags.outputs.runid}}
193
-
194
- SCRIPT_DIR : .github/workflows/debian
195
109
steps :
196
110
197
111
- name : Checkout the repository
@@ -204,32 +118,25 @@ jobs:
204
118
run : |
205
119
cp -r . /tmp/cbmc-${CBMC_VERSION}
206
120
cp ${SCRIPT_DIR}/Makefile ${SCRIPT_DIR}/changelog ${SCRIPT_DIR}/surefire ${SCRIPT_DIR}/64bit_regression_tests.patch /tmp
207
- make -C /tmp GITHUB=1 STABLE= CBMC_VERSION=${CBMC_VERSION} PKG_VERSION=${PKG_VERSION}
208
- mv /tmp/*.deb ${PACKAGE_LATEST_NAME }
121
+ make -C /tmp GITHUB=1 STABLE=1 CBMC_VERSION=${CBMC_VERSION} PKG_VERSION=${PKG_VERSION}
122
+ mv /tmp/*.deb ${PACKAGE_NAME }
209
123
210
124
- name : Upload the package
211
125
uses : actions/upload-artifact@v1
212
126
with :
213
- name : ${{ env.ARTIFACT_LATEST_NAME }}
214
- path : ${{ env.PACKAGE_LATEST_NAME }}
127
+ name : ${{ env.ARTIFACT_NAME }}
128
+ path : ${{ env.PACKAGE_NAME }}
215
129
216
130
MacOS :
217
- name : MacOS packages
131
+ name : MacOS tarball
218
132
runs-on : macos-10.15
219
133
needs : Tags
220
134
env :
221
- OS : catalina
222
135
VERSION : ${{needs.Tags.outputs.pkg_version}}
223
- TIME : ${{needs.Tags.outputs.time}}
224
- SHA : ${{needs.Tags.outputs.sha}}
225
-
226
- PACKAGE_STABLE_NAME : cbmc_${{needs.Tags.outputs.pkg_version}}~catalina.tar.gz
227
- PACKAGE_LATEST_NAME : cbmc-latest_${{needs.Tags.outputs.pkg_version}}~catalina.tar.gz
228
-
229
- ARTIFACT_STABLE_NAME : MacOS cbmc ${{needs.Tags.outputs.pkg_version}} catalina ${{needs.Tags.outputs.time}} ${{needs.Tags.outputs.sha}} ${{needs.Tags.outputs.runid}}
230
- ARTIFACT_LATEST_NAME : MacOS cbmc-latest ${{needs.Tags.outputs.pkg_version}} catalina ${{needs.Tags.outputs.time}} ${{needs.Tags.outputs.sha}} ${{needs.Tags.outputs.runid}}
231
-
136
+ PACKAGE_NAME : cbmc_${{needs.Tags.outputs.pkg_version}}~catalina.tar.gz
137
+ ARTIFACT_NAME : MacOS cbmc ${{needs.Tags.outputs.pkg_version}} catalina ${{needs.Tags.outputs.time}} ${{needs.Tags.outputs.sha}} ${{needs.Tags.outputs.runid}}
232
138
SCRIPT_DIR : .github/workflows/macos15
139
+
233
140
steps :
234
141
235
142
- name : Checkout the repository
@@ -241,37 +148,22 @@ jobs:
241
148
- name : Build the package
242
149
run : |
243
150
make -f ${SCRIPT_DIR}/Makefile
244
- mv cbmc.tar.gz ${PACKAGE_STABLE_NAME}
245
- mv cbmc-latest.tar.gz ${PACKAGE_LATEST_NAME}
246
-
247
- - name : Upload the cbmc package
248
- uses : actions/upload-artifact@v1
249
- with :
250
- name : ${{env.ARTIFACT_STABLE_NAME}}
251
- path : ${{env.PACKAGE_STABLE_NAME}}
151
+ mv cbmc.tar.gz ${PACKAGE_NAME}
252
152
253
- - name : Upload the cbmc-latest package
153
+ - name : Upload the package
254
154
uses : actions/upload-artifact@v1
255
155
with :
256
- name : ${{env.ARTIFACT_LATEST_NAME }}
257
- path : ${{env.PACKAGE_LATEST_NAME }}
156
+ name : ${{env.ARTIFACT_NAME }}
157
+ path : ${{env.PACKAGE_NAME }}
258
158
259
159
VS2019 :
260
- name : Windows VS2019 installers
160
+ name : Windows VS2019 installer
261
161
runs-on : windows-2019
262
162
needs : Tags
263
163
env :
264
- OS : vs2019
265
164
VERSION : ${{needs.Tags.outputs.pkg_version}}
266
- TIME : ${{needs.Tags.outputs.time}}
267
- SHA : ${{needs.Tags.outputs.sha}}
268
-
269
- PACKAGE_STABLE_NAME : cbmc_${{needs.Tags.outputs.pkg_version}}~vs2019.msi
270
- PACKAGE_LATEST_NAME : cbmc-latest_${{needs.Tags.outputs.pkg_version}}~vs2019.msi
271
-
272
- ARTIFACT_STABLE_NAME : Windows cbmc ${{needs.Tags.outputs.pkg_version}} vs2019 ${{needs.Tags.outputs.time}} ${{needs.Tags.outputs.sha}} ${{needs.Tags.outputs.runid}}
273
- ARTIFACT_LATEST_NAME : Windows cbmc-latest ${{needs.Tags.outputs.pkg_version}} vs2019 ${{needs.Tags.outputs.time}} ${{needs.Tags.outputs.sha}} ${{needs.Tags.outputs.runid}}
274
-
165
+ PACKAGE_NAME : cbmc_${{needs.Tags.outputs.pkg_version}}~vs2019.msi
166
+ ARTIFACT_NAME : Windows cbmc ${{needs.Tags.outputs.pkg_version}} vs2019 ${{needs.Tags.outputs.time}} ${{needs.Tags.outputs.sha}} ${{needs.Tags.outputs.runid}}
275
167
SCRIPT_DIR : .github\workflows\vs2019
276
168
277
169
defaults :
@@ -294,22 +186,12 @@ jobs:
294
186
- name : Build cbmc
295
187
run : ${{env.SCRIPT_DIR}}\build-cbmc.bat
296
188
297
- - name : Build the stable installer
189
+ - name : Build the installer
298
190
run : |
299
- ${{env.SCRIPT_DIR}}\build-installer.bat cbmc && move cbmc.msi ${{env.PACKAGE_STABLE_NAME}}
300
-
301
- - name : Build the latest installer
302
- run : |
303
- ${{env.SCRIPT_DIR}}\build-installer.bat cbmc-latest && move cbmc-latest.msi ${{env.PACKAGE_LATEST_NAME}}
304
-
305
- - name : Upload the cbmc installer
306
- uses : actions/upload-artifact@v1
307
- with :
308
- name : ${{env.ARTIFACT_STABLE_NAME}}
309
- path : ${{env.PACKAGE_STABLE_NAME}}
191
+ ${{env.SCRIPT_DIR}}\build-installer.bat cbmc && move cbmc.msi ${{env.PACKAGE_NAME}}
310
192
311
- - name : Upload the cbmc-latest installer
193
+ - name : Upload the installer
312
194
uses : actions/upload-artifact@v1
313
195
with :
314
- name : ${{env.ARTIFACT_LATEST_NAME }}
315
- path : ${{env.PACKAGE_LATEST_NAME }}
196
+ name : ${{env.ARTIFACT_NAME }}
197
+ path : ${{env.PACKAGE_NAME }}
0 commit comments