-
Notifications
You must be signed in to change notification settings - Fork 2
642 lines (629 loc) · 26.8 KB
/
CI-distro.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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
name: Distro
on:
push:
workflow_dispatch:
jobs:
build-linux-amd64:
runs-on: ubuntu-latest
if: "contains(github.event.head_commit.message, '[distro]') || github.ref_type == 'tag' || github.event_name == 'workflow_dispatch'"
steps:
- name: Clean
run: |
rm -fR "$GITHUB_WORKSPACE/Sireum" "$GITHUB_WORKSPACE/Cache"
- name: Checkout
uses: actions/checkout@v4
with:
path: Sireum
- name: Update dev tag
run: |
cd "$GITHUB_WORKSPACE/Sireum"
git push --force origin HEAD:refs/tags/dev
git fetch --tags
- name: Build Jar & m2
run: |
sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/cli'
sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/status'
cd "$GITHUB_WORKSPACE/Sireum"
git submodule update --init --recursive
cd "$GITHUB_WORKSPACE"
export SIREUM_HOME="$GITHUB_WORKSPACE/Sireum"
export COURSIER_CACHE="$GITHUB_WORKSPACE/Cache"
rm -fR "$COURSIER_CACHE"
mkdir -p "$COURSIER_CACHE"
"$SIREUM_HOME/bin/build.cmd" jar forms
cp "$SIREUM_HOME/bin/sireum.jar" sireum.jar
rm -fR "$GITHUB_WORKSPACE/.m2" $HOME/.m2
"$SIREUM_HOME/bin/build.cmd" m2-lib
mv $HOME/.m2 "$GITHUB_WORKSPACE/.m2"
cp -a "$GITHUB_WORKSPACE/Cache/https/jitpack.io"/* "$GITHUB_WORKSPACE/.m2/repository"
cp -a "$GITHUB_WORKSPACE/Cache/https/repo1.maven.org/maven2"/* "$GITHUB_WORKSPACE/.m2/repository"
find .m2 -type f ! \( -name '*.pom' -o -name '*.jar' \) -delete
zip -r org.sireum.library.m2.zip .m2
rm -fR "$GITHUB_WORKSPACE/.m2" $HOME/.m2
"$SIREUM_HOME/bin/build.cmd" m2
mv $HOME/.m2 "$GITHUB_WORKSPACE/.m2"
cp -a "$GITHUB_WORKSPACE/Cache/https/jitpack.io"/* "$GITHUB_WORKSPACE/.m2/repository"
cp -a "$GITHUB_WORKSPACE/Cache/https/repo1.maven.org/maven2"/* "$GITHUB_WORKSPACE/.m2/repository"
find .m2 -type f ! \( -name '*.pom' -o -name '*.jar' \) -delete
zip -r org.sireum.m2.zip .m2
- name: Upload install.cmd dev
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: Sireum/bin/install.cmd
asset_name: install.cmd
tag: dev
overwrite: true
- name: Upload Jar dev
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum.jar
asset_name: sireum.jar
tag: dev
overwrite: true
- name: Upload m2 Lib dev
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: org.sireum.library.m2.zip
asset_name: org.sireum.library.m2.zip
tag: dev
overwrite: true
- name: Upload m2 dev
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: org.sireum.m2.zip
asset_name: org.sireum.m2.zip
tag: dev
overwrite: true
- name: Upload install.cmd Release
if: github.ref_type == 'tag'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: Sireum/bin/install.cmd
asset_name: install.cmd
tag: ${{ github.ref }}
overwrite: true
- name: Upload Jar Release
if: github.ref_type == 'tag'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum.jar
asset_name: sireum.jar
tag: ${{ github.ref }}
overwrite: true
- name: Upload m2 Library Release
if: github.ref_type == 'tag'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: org.sireum.library.m2.zip
asset_name: org.sireum.library.m2.zip
tag: ${{ github.ref }}
overwrite: true
- name: Upload m2 Release
if: github.ref_type == 'tag'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: org.sireum.m2.zip
asset_name: org.sireum.m2.zip
tag: ${{ github.ref }}
overwrite: true
- name: Build
run: |
cd "$GITHUB_WORKSPACE"
export SIREUM_HOME="$GITHUB_WORKSPACE/Sireum"
timeout 10s "$SIREUM_HOME/bin/build.cmd" jitpack || true
"$SIREUM_HOME/bin/sireum" setup vscode --extensions "mhutchie.git-graph,hediet.vscode-drawio,scalameta.metals,rust-lang.rust-analyzer"
"$SIREUM_HOME/bin/build.cmd" native distro --linux --pack --vscodium
echo "" > Sireum/bin/.binfmt
tar -cJf sireum-cli-linux-amd64.tar.xz \
Sireum/bin/sireum Sireum/bin/slang-run.sh Sireum/bin/linux/sireum Sireum/bin/install Sireum/bin/7zz \
Sireum/bin/.binfmt Sireum/bin/.7zz.ver Sireum/license.txt Sireum/readme.md Sireum/versions.properties
mv "$SIREUM_HOME/distro/linux.tar.xz" sireum-ive-linux-amd64.tar.xz
mv "$SIREUM_HOME/distro/sireum-codeive-linux-amd64.tar.xz" .
- name: Upload CLI dev
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-cli-linux-amd64.tar.xz
asset_name: sireum-cli-linux-amd64.tar.xz
tag: dev
overwrite: true
- name: Upload IVE dev
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-ive-linux-amd64.tar.xz
asset_name: sireum-ive-linux-amd64.tar.xz
tag: dev
overwrite: true
- name: Upload CodeIVE dev
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-codeive-linux-amd64.tar.xz
asset_name: sireum-codeive-linux-amd64.tar.xz
tag: dev
overwrite: true
- name: Upload CLI Release
if: github.ref_type == 'tag'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-cli-linux-amd64.tar.xz
asset_name: sireum-cli-linux-amd64.tar.xz
tag: ${{ github.ref }}
overwrite: true
- name: Upload IVE Release
if: github.ref_type == 'tag'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-ive-linux-amd64.tar.xz
asset_name: sireum-ive-linux-amd64.tar.xz
tag: ${{ github.ref }}
overwrite: true
- name: Upload CodeIVE Release
if: github.ref_type == 'tag'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-codeive-linux-amd64.tar.xz
asset_name: sireum-codeive-linux-amd64.tar.xz
tag: ${{ github.ref }}
overwrite: true
build-macos-arm64:
runs-on: mac-mini-m1
if: "contains(github.event.head_commit.message, '[distro]') || github.ref_type == 'tag' || github.event_name == 'workflow_dispatch'"
steps:
- name: Clean
run: |
rm -fR "$GITHUB_WORKSPACE/Sireum" ~/Downloads/sireum
- name: Checkout
uses: actions/checkout@v4
with:
path: Sireum
submodules: recursive
- name: Build
run: |
cd $GITHUB_WORKSPACE
export SIREUM_HOME="$GITHUB_WORKSPACE/Sireum"
"$SIREUM_HOME/bin/build.cmd"
"$SIREUM_HOME/bin/sireum" setup vscode --extensions "mhutchie.git-graph,hediet.vscode-drawio,scalameta.metals,rust-lang.rust-analyzer"
"$SIREUM_HOME/bin/build.cmd" native distro --mac --pack --vscodium
tar -cJf sireum-cli-mac-arm64.tar.xz \
Sireum/bin/sireum Sireum/bin/slang-run.sh Sireum/bin/mac/sireum Sireum/bin/install Sireum/bin/7zz \
Sireum/bin/.7zz.ver Sireum/license.txt Sireum/readme.md Sireum/versions.properties
mv "$SIREUM_HOME/distro/mac.tar.xz" sireum-ive-mac-arm64.tar.xz
mv "$SIREUM_HOME/distro/sireum-codeive-mac-arm64.tar.xz" .
- name: Upload CLI dev
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-cli-mac-arm64.tar.xz
asset_name: sireum-cli-mac-arm64.tar.xz
tag: dev
overwrite: true
- name: Upload IVE dev
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-ive-mac-arm64.tar.xz
asset_name: sireum-ive-mac-arm64.tar.xz
tag: dev
overwrite: true
- name: Upload CodeIVE dev
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-codeive-mac-arm64.tar.xz
asset_name: sireum-codeive-mac-arm64.tar.xz
tag: dev
overwrite: true
- name: Upload CLI Release
if: github.ref_type == 'tag'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-cli-mac-arm64.tar.xz
asset_name: sireum-cli-mac-arm64.tar.xz
tag: ${{ github.ref }}
overwrite: true
- name: Upload IVE Release
if: github.ref_type == 'tag'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-ive-mac-arm64.tar.xz
asset_name: sireum-ive-mac-arm64.tar.xz
tag: ${{ github.ref }}
overwrite: true
- name: Upload CodeIVE Release
if: github.ref_type == 'tag'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-codeive-mac-arm64.tar.xz
asset_name: sireum-codeive-mac-arm64.tar.xz
tag: ${{ github.ref }}
overwrite: true
build-macos-amd64:
runs-on: macOS-13
if: "contains(github.event.head_commit.message, '[distro]') || github.ref_type == 'tag' || github.event_name == 'workflow_dispatch'"
steps:
- name: Clean
run: |
rm -fR "$GITHUB_WORKSPACE/Sireum"
- name: Checkout
uses: actions/checkout@v4
with:
path: Sireum
submodules: recursive
- name: Build
run: |
cd $GITHUB_WORKSPACE
export SIREUM_HOME="$GITHUB_WORKSPACE/Sireum"
"$SIREUM_HOME/bin/build.cmd"
"$SIREUM_HOME/bin/sireum" setup vscode --extensions "mhutchie.git-graph,hediet.vscode-drawio,scalameta.metals,rust-lang.rust-analyzer"
"$SIREUM_HOME/bin/build.cmd" native distro --mac --pack --vscodium
tar -cJf sireum-cli-mac-amd64.tar.xz \
Sireum/bin/sireum Sireum/bin/slang-run.sh Sireum/bin/mac/sireum Sireum/bin/install Sireum/bin/7zz \
Sireum/bin/.7zz.ver Sireum/license.txt Sireum/readme.md Sireum/versions.properties
mv "$SIREUM_HOME/distro/mac.tar.xz" sireum-ive-mac-amd64.tar.xz
mv "$SIREUM_HOME/distro/sireum-codeive-mac-amd64.tar.xz" .
- name: Upload CLI dev
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-cli-mac-amd64.tar.xz
asset_name: sireum-cli-mac-amd64.tar.xz
tag: dev
overwrite: true
- name: Upload IVE dev
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-ive-mac-amd64.tar.xz
asset_name: sireum-ive-mac-amd64.tar.xz
tag: dev
overwrite: true
- name: Upload CodeIVE dev
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-codeive-mac-amd64.tar.xz
asset_name: sireum-codeive-mac-amd64.tar.xz
tag: dev
overwrite: true
- name: Upload CLI Release
if: github.ref_type == 'tag'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-cli-mac-amd64.tar.xz
asset_name: sireum-cli-mac-amd64.tar.xz
tag: ${{ github.ref }}
overwrite: true
- name: Upload IVE Release
if: github.ref_type == 'tag'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-ive-mac-amd64.tar.xz
asset_name: sireum-ive-mac-amd64.tar.xz
tag: ${{ github.ref }}
overwrite: true
- name: Upload CodeIVE Release
if: github.ref_type == 'tag'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-codeive-mac-amd64.tar.xz
asset_name: sireum-codeive-mac-amd64.tar.xz
tag: ${{ github.ref }}
overwrite: true
build-windows-amd64:
runs-on: windows-latest
if: "contains(github.event.head_commit.message, '[distro]') || github.ref_type == 'tag' || github.event_name == 'workflow_dispatch'"
steps:
- name: Enable git config core.longpaths
run: git config --system core.longpaths true
- name: Clean
shell: cmd
run: |
if exist "%GITHUB_WORKSPACE%\Sireum" rmdir /s/q "%GITHUB_WORKSPACE%\Sireum"
- name: Checkout
uses: actions/checkout@v4
with:
path: Sireum
submodules: recursive
- name: Configure Pagefile
uses: al-cheb/[email protected]
with:
minimum-size: 8GB
maximum-size: 16GB
disk-root: "C:"
- name: Build
shell: cmd
run: |
set SIREUM_HOME=%GITHUB_WORKSPACE%\Sireum
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
set errorlevel=
call "%SIREUM_HOME%\bin\build.cmd" || goto :error
call "%SIREUM_HOME%\bin\sireum.bat" setup vscode --extensions "mhutchie.git-graph,hediet.vscode-drawio,scalameta.metals,rust-lang.rust-analyzer" || goto :error
del "%SIREUM_HOME%\bin\.sireum-win.jar" || goto :error
call "%SIREUM_HOME%\bin\build.cmd" native distro --win --pack --vscodium || goto :error
copy C:\Windows\System32\vcruntime140.dll Sireum\bin\win\ || goto :error
copy C:\Windows\System32\vcruntime140_1.dll Sireum\bin\win\ || goto :error
"%SIREUM_HOME%\bin\7zz.com" a sireum-cli-win-amd64.7z Sireum\bin\sireum.bat Sireum\bin\slang-run.bat Sireum\bin\install Sireum\bin\7zz.com Sireum\bin\.7zz.ver Sireum\bin\win\sireum.exe Sireum\bin\win\vcruntime140.dll Sireum\bin\win\vcruntime140_1.dll Sireum\license.txt Sireum\readme.md Sireum\versions.properties || goto :error
move "%SIREUM_HOME%\distro\win.7z" "%GITHUB_WORKSPACE%\sireum-ive-win-amd64.7z" || goto :error
move "%SIREUM_HOME%\distro\sireum-codeive-win-amd64.7z" "%GITHUB_WORKSPACE%\" || goto :error
goto :EOF
:error
exit /b %errorlevel%
- name: Upload CLI dev
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-cli-win-amd64.7z
asset_name: sireum-cli-win-amd64.7z
tag: dev
overwrite: true
- name: Upload IVE dev
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-ive-win-amd64.7z
asset_name: sireum-ive-win-amd64.7z
tag: dev
overwrite: true
- name: Upload CodeIVE dev
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-codeive-win-amd64.7z
asset_name: sireum-codeive-win-amd64.7z
tag: dev
overwrite: true
- name: Upload CLI Release
if: github.ref_type == 'tag'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-cli-win-amd64.7z
asset_name: sireum-cli-win-amd64.7z
tag: ${{ github.ref }}
overwrite: true
- name: Upload IVE Release
if: github.ref_type == 'tag'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-ive-win-amd64.7z
asset_name: sireum-ive-win-amd64.7z
tag: ${{ github.ref }}
overwrite: true
- name: Upload CodeIVE Release
if: github.ref_type == 'tag'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: sireum-codeive-win-amd64.7z
asset_name: sireum-codeive-win-amd64.7z
tag: ${{ github.ref }}
overwrite: true
test-mac-arm64:
needs: [build-linux-amd64, build-macos-arm64]
runs-on: macOS-latest
steps:
- name: Test CodeIVE
run: |
rm -fR ~/.m2 logika-examples
DISTRO=codeive sh -c "$(curl -fsSL https://github.com/sireum/kekinian/releases/download/${{ github.ref_type == 'tag' && github.ref_name || 'dev' }}/install.cmd)"
export SIREUM_HOME=~/Applications/Sireum
git clone https://github.com/sireum/logika-examples
logika-examples/bin/verify.cmd
"${SIREUM_HOME}/bin/sireum" proyek export logika-examples
- name: Test IVE
run: |
rm -fR ~/.m2 logika-examples
DISTRO=ive sh -c "$(curl -fsSL https://github.com/sireum/kekinian/releases/download/${{ github.ref_type == 'tag' && github.ref_name || 'dev' }}/install.cmd)"
export SIREUM_HOME=~/Applications/Sireum
git clone https://github.com/sireum/logika-examples
logika-examples/bin/verify.cmd
"${SIREUM_HOME}/bin/sireum" proyek ive logika-examples
- name: Test FMIDE
run: |
export SIREUM_HOME=~/Applications/Sireum
"${SIREUM_HOME}/bin/install/fmide.cmd"
test-mac-amd64:
needs: [build-linux-amd64, build-macos-amd64]
runs-on: macOS-13
steps:
- name: Test CodeIVE
run: |
rm -fR ~/.m2 logika-examples
DISTRO=codeive sh -c "$(curl -fsSL https://github.com/sireum/kekinian/releases/download/${{ github.ref_type == 'tag' && github.ref_name || 'dev' }}/install.cmd)"
export SIREUM_HOME=~/Applications/Sireum
git clone https://github.com/sireum/logika-examples
logika-examples/bin/verify.cmd
"${SIREUM_HOME}/bin/sireum" proyek export logika-examples
- name: Test IVE
run: |
rm -fR ~/.m2 logika-examples
DISTRO=ive sh -c "$(curl -fsSL https://github.com/sireum/kekinian/releases/download/${{ github.ref_type == 'tag' && github.ref_name || 'dev' }}/install.cmd)"
export SIREUM_HOME=~/Applications/Sireum
git clone https://github.com/sireum/logika-examples
logika-examples/bin/verify.cmd
"${SIREUM_HOME}/bin/sireum" proyek ive logika-examples
- name: Test FMIDE
run: |
export SIREUM_HOME=~/Applications/Sireum
"${SIREUM_HOME}/bin/install/fmide.cmd"
test-windows-amd64-2019:
needs: [build-linux-amd64, build-windows-amd64]
runs-on: windows-2019
steps:
- name: Test CodeIVE
shell: cmd
run: |
rmdir /s/q "%USERPROFILE%\.m2" logika-examples 2> null
cmd /v/c "set DISTRO=codeive&& curl -JLOs https://github.com/sireum/kekinian/releases/download/${{ github.ref_type == 'tag' && github.ref_name || 'dev' }}/install.cmd && install.cmd && del /q/f install.cmd"
set errorlevel=
set SIREUM_HOME=%USERPROFILE%\Applications\Sireum
git clone https://github.com/sireum/logika-examples
call logika-examples\bin\verify.cmd || goto :error
call "%SIREUM_HOME%\bin\sireum.bat" proyek export logika-examples || goto :error
goto :EOF
:error
exit /b %errorlevel%
- name: Test IVE
shell: cmd
run: |
rmdir /s/q "%USERPROFILE%\.m2" logika-examples 2> null
cmd /v/c "set DISTRO=ive&& curl -JLOs https://github.com/sireum/kekinian/releases/download/${{ github.ref_type == 'tag' && github.ref_name || 'dev' }}/install.cmd && install.cmd && del /q/f install.cmd"
set errorlevel=
set SIREUM_HOME=%USERPROFILE%\Applications\Sireum
git clone https://github.com/sireum/logika-examples
call logika-examples\bin\verify.cmd || goto :error
call "%SIREUM_HOME%\bin\sireum.bat" proyek ive logika-examples || goto :error
call "%SIREUM_HOME%\bin\install\fmide.cmd" || goto :error
goto :EOF
:error
exit /b %errorlevel%
- name: Test FMIDE
shell: cmd
run: |
set errorlevel=
set SIREUM_HOME=%USERPROFILE%\Applications\Sireum
call "%SIREUM_HOME%\bin\install\fmide.cmd" || goto :error
goto :EOF
:error
exit /b %errorlevel%
test-windows-amd64-latest:
needs: [build-linux-amd64, build-windows-amd64]
runs-on: windows-latest
steps:
- name: Test CodeIVE
shell: cmd
run: |
rmdir /s/q "%USERPROFILE%\.m2" logika-examples 2> null
cmd /v/c "set DISTRO=codeive&& curl -JLOs https://github.com/sireum/kekinian/releases/download/${{ github.ref_type == 'tag' && github.ref_name || 'dev' }}/install.cmd && install.cmd && del /q/f install.cmd"
set errorlevel=
set SIREUM_HOME=%USERPROFILE%\Applications\Sireum
git clone https://github.com/sireum/logika-examples
call logika-examples\bin\verify.cmd || goto :error
call "%SIREUM_HOME%\bin\sireum.bat" proyek export logika-examples || goto :error
goto :EOF
:error
exit /b %errorlevel%
- name: Test IVE
shell: cmd
run: |
rmdir /s/q "%USERPROFILE%\.m2" logika-examples 2> null
cmd /v/c "set DISTRO=ive&& curl -JLOs https://github.com/sireum/kekinian/releases/download/${{ github.ref_type == 'tag' && github.ref_name || 'dev' }}/install.cmd && install.cmd && del /q/f install.cmd"
set errorlevel=
set SIREUM_HOME=%USERPROFILE%\Applications\Sireum
git clone https://github.com/sireum/logika-examples
call logika-examples\bin\verify.cmd || goto :error
call "%SIREUM_HOME%\bin\sireum.bat" proyek ive logika-examples || goto :error
goto :EOF
:error
exit /b %errorlevel%
- name: Test FMIDE
shell: cmd
run: |
set errorlevel=
set SIREUM_HOME=%USERPROFILE%\Applications\Sireum
call "%SIREUM_HOME%\bin\install\fmide.cmd" || goto :error
goto :EOF
:error
exit /b %errorlevel%
test-linux-amd64-20-04:
needs: build-linux-amd64
runs-on: ubuntu-20.04
steps:
- name: Test CodeIVE
run: |
rm -fR ~/.m2 logika-examples
DISTRO=codeive sh -c "$(curl -fsSL https://github.com/sireum/kekinian/releases/download/${{ github.ref_type == 'tag' && github.ref_name || 'dev' }}/install.cmd)"
export SIREUM_HOME=~/Applications/Sireum
git clone https://github.com/sireum/logika-examples
logika-examples/bin/verify.cmd
"${SIREUM_HOME}/bin/sireum" proyek export logika-examples
- name: Test IVE
run: |
rm -fR ~/.m2 logika-examples
DISTRO=ive sh -c "$(curl -fsSL https://github.com/sireum/kekinian/releases/download/${{ github.ref_type == 'tag' && github.ref_name || 'dev' }}/install.cmd)"
export SIREUM_HOME=~/Applications/Sireum
git clone https://github.com/sireum/logika-examples
logika-examples/bin/verify.cmd
"${SIREUM_HOME}/bin/sireum" proyek ive logika-examples
- name: Test FMIDE
run: |
export SIREUM_HOME=~/Applications/Sireum
"${SIREUM_HOME}/bin/install/fmide.cmd"
test-linux-amd64-22-04:
needs: build-linux-amd64
runs-on: ubuntu-22.04
steps:
- name: Disable binfmt
run: |
sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/cli'
sudo sh -c 'echo -1 > /proc/sys/fs/binfmt_misc/status'
- name: Test CodeIVE
run: |
rm -fR ~/.m2 logika-examples
DISTRO=codeive sh -c "$(curl -fsSL https://github.com/sireum/kekinian/releases/download/${{ github.ref_type == 'tag' && github.ref_name || 'dev' }}/install.cmd)"
export SIREUM_HOME=~/Applications/Sireum
git clone https://github.com/sireum/logika-examples
logika-examples/bin/verify.cmd
"${SIREUM_HOME}/bin/sireum" proyek export logika-examples
- name: Test IVE
run: |
rm -fR ~/.m2 logika-examples
DISTRO=ive sh -c "$(curl -fsSL https://github.com/sireum/kekinian/releases/download/${{ github.ref_type == 'tag' && github.ref_name || 'dev' }}/install.cmd)"
export SIREUM_HOME=~/Applications/Sireum
git clone https://github.com/sireum/logika-examples
logika-examples/bin/verify.cmd
"${SIREUM_HOME}/bin/sireum" proyek ive logika-examples
- name: Test FMIDE
run: |
export SIREUM_HOME=~/Applications/Sireum
"${SIREUM_HOME}/bin/install/fmide.cmd"
test-linux-amd64-latest:
needs: build-linux-amd64
runs-on: ubuntu-latest
steps:
- name: Setup APE binfmt
run: |
sudo wget -O /usr/bin/ape https://cosmo.zip/pub/cosmos/bin/ape-$(uname -m).elf
sudo chmod +x /usr/bin/ape
sudo sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"
sudo sh -c "echo ':APE-jart:M::jartsr::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"
- name: Test CodeIVE
run: |
rm -fR ~/.m2 logika-examples
DISTRO=codeive sh -c "$(curl -fsSL https://github.com/sireum/kekinian/releases/download/${{ github.ref_type == 'tag' && github.ref_name || 'dev' }}/install.cmd)"
export SIREUM_HOME=~/Applications/Sireum
git clone https://github.com/sireum/logika-examples
logika-examples/bin/verify.cmd
"${SIREUM_HOME}/bin/sireum" proyek export logika-examples
- name: Test IVE
run: |
rm -fR ~/.m2 logika-examples
DISTRO=ive sh -c "$(curl -fsSL https://github.com/sireum/kekinian/releases/download/${{ github.ref_type == 'tag' && github.ref_name || 'dev' }}/install.cmd)"
export SIREUM_HOME=~/Applications/Sireum
git clone https://github.com/sireum/logika-examples
logika-examples/bin/verify.cmd
"${SIREUM_HOME}/bin/sireum" proyek ive logika-examples
- name: Test FMIDE
run: |
export SIREUM_HOME=~/Applications/Sireum
"${SIREUM_HOME}/bin/install/fmide.cmd"