-
Notifications
You must be signed in to change notification settings - Fork 91
848 lines (751 loc) · 20.8 KB
/
jsource.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
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
name: JE
on:
push:
branches:
- '**'
# trigger workflow on file change
#on:
# push:
# paths:
# - 'version.txt'
# if: ${{ false }}
jobs:
# create tarball -------------------------------------------------------
tarball:
name: Tarball
runs-on: ubuntu-20.04
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Test JE (Linux)
run: |
cd ..
zip -r jsource.zip jsource -x "jsource/.*"
tar -czv --exclude ".*" -f jsource.tar.gz jsource
cd -
mv ../jsource.zip .
mv ../jsource.tar.gz .
- name: Release Tarball
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "jsource.zip,jsource.tar.gz"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
# linux ----------------------------------------------------------------
jelinux:
name: JE (Linux)
runs-on: ubuntu-20.04
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Setup SDE binaries
uses: petarpetrovt/setup-sde@v2
- name: Setup Environment (Linux)
run: script/install-lnx.sh
- name: Commit
run: script/commit.sh ${{ github.sha }} ${{ github.actor }}
- name: Build JE (Linux)
env:
CC: clang
USE_SLEEF: 1
run: |
echo $SDE_PATH
$SDE_PATH/sde -help || true
script/buildga.sh linux || exit 1
- name: Test JE (Linux)
run: |
script/testga.sh linux || exit 1
ls -l j64
zip -r l64d.zip j64
cd j64
strip -S jconsole
strip -S libj.so
strip -S libjavx2.so || true
strip -S libjavx512.so || true
strip -S libtsdll.so
strip -S jamalgam || true
strip -S libgmp.so
cd -
ls -l j64
zip -r l64.zip j64
- name: Release JE (Linux)
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "l64.zip,l64d.zip,commit.txt,version.txt"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
- name: Copy Test (Linux)
uses: actions/upload-artifact@v2
with:
name: dist
path: testlinux.txt
# linux gcc ------------------------------------------------------------
jelinux-gcc:
name: JE (Linux gcc)
runs-on: ubuntu-20.04
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Setup SDE binaries
uses: petarpetrovt/setup-sde@v2
- name: Setup Environment (Linux gcc)
run: script/install-lnx.sh
- name: Build JE (Linux gcc)
env:
CC: gcc
USE_SLEEF: 1
run: |
echo $SDE_PATH
$SDE_PATH/sde -help || true
script/buildga.sh linux || exit 1
- name: Test JE (Linux gcc)
run: |
script/testga.sh linux || exit 1
mv testlinux.txt testlinuxgcc.txt
ls -l j64
zip -r lgcc64d.zip j64
cd j64
strip -S jconsole
strip -S libj.so
strip -S libjavx2.so || true
strip -S libjavx512.so || true
strip -S libtsdll.so
strip -S jamalgam || true
strip -S libgmp.so
cd -
ls -l j64
zip -r lgcc64.zip j64
- name: Release JE (Linux gcc)
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "lgcc64.zip,lgcc64d.zip"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
- name: Copy Test (Linux gcc)
uses: actions/upload-artifact@v2
with:
name: dist
path: testlinuxgcc.txt
# macOS ----------------------------------------------------------------
jemacos:
name: JE (macOS)
runs-on: macos-12
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
# - name: Setup Environment (macOS)
- name: Build JE (macOS)
env:
CC: clang
USE_SLEEF: 1
run: |
script/buildga.sh darwin || exit 1
- name: Test JE (macOS)
run: |
script/testga.sh darwin || exit 1
rm -rf j64/jconsole.dSYM
rm -rf j64/libj.dylib.dSYM
rm -rf j64/libjavx2.dylib.dSYM
rm -rf j64/libjavx512.dylib.dSYM
rm -rf j64/libtsdll.dylib.dSYM
rm -rf j64/jamalgam.dSYM
ls -l j64
zip -r m64d.zip j64
cd j64
strip -S jconsole
strip -S libj.dylib
strip -S libjavx2.dylib || true
strip -S libjavx512.dylib || true
strip -S libtsdll.dylib
strip -S jamalgam || true
strip -S libgmp.dylib
cd -
ls -l j64
zip -r m64.zip j64
- name: Release JE (macOS)
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "m64.zip,m64d.zip"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
- name: Copy Test (macOS)
uses: actions/upload-artifact@v2
with:
name: dist
path: testdarwin.txt
# rpi64 ----------------------------------------------------------------
jerpi64:
name: JE (Raspberry)
runs-on: ubuntu-20.04
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Build, Test JE (Raspberry)
uses: pguyot/arm-runner-action@v2
with:
cpu: cortex-a53
cpu_info: cpuinfo/raspberrypi_zero2_w_arm64
base_image: raspios_lite_arm64:latest
image_additional_mb: 1024
copy_artifact_path: j64
commands: |
apt-get install --no-install-recommends -y clang zip
export CC=clang
export USE_SLEEF=1
script/buildga.sh raspberry || exit 1
script/testga.sh raspberry || exit 1
ls -l j64
zip -r rpi64d.zip j64
cd j64
strip -S jconsole
strip -S libj.so
strip -S libtsdll.so
strip -S jamalgam || true
strip -S libgmp.so
cd -
zip -r rpi64.zip j64
rm -rf j64
mkdir j64
mv rpi64.zip j64/.
mv rpi64d.zip j64/.
mv testrpi64.txt j64/.
find j64 -type d -exec chmod a+rwx {} \;
find j64 -type f -exec chmod a+rw {} \;
- name: Compress Files (Raspberry)
run: |
ls -l j64
mv j64/* .
- name: Release JE (Raspberry)
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "rpi64.zip,rpi64d.zip"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
- name: Copy Test (Raspberry)
uses: actions/upload-artifact@v2
with:
name: dist
path: testrpi64.txt
# rpi32 ----------------------------------------------------------------
jerpi32:
name: JE (Raspberry32)
runs-on: ubuntu-20.04
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Build, Test JE (Raspberry 32)
uses: pguyot/arm-runner-action@v2
with:
cpu: arm1176
cpu_info: cpuinfo/raspberrypi_zero2_w
base_image: raspbian_lite:2020-02-13
image_additional_mb: 1024
copy_artifact_path: j32
commands: |
apt-get install --no-install-recommends -y zip
export CC=gcc
export USE_SLEEF=0
script/buildga.sh raspberry || exit 1
script/testga.sh raspberry || exit 1
find j32 -type d -exec chmod a+rwx {} \;
find j32 -type f -exec chmod a+rw {} \;
ls -l j32
zip -r rpi32d.zip j32
cd j32
strip -S jconsole
strip -S libj.so
strip -S libtsdll.so
strip -S jamalgam || true
strip -S libgmp.so
cd -
zip -r rpi32.zip j32
rm -rf j32
mkdir j32
mv rpi32.zip j32/.
mv rpi32d.zip j32/.
mv testrpi32.txt j32/.
find j32 -type d -exec chmod a+rwx {} \;
find j32 -type f -exec chmod a+rw {} \;
- name: Compress Files (Raspberry32)
run: |
ls -l j32
mv j32/* .
- name: Release JE (Raspberry32)
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "rpi32.zip,rpi32d.zip"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
- name: Copy Test (Raspberry)
uses: actions/upload-artifact@v2
with:
name: dist
path: testrpi32.txt
# openbsd --------------------------------------------------------------
jeopenbsd:
name: JE (OpenBSD vmactions)
if: ${{ false }}
runs-on: macos-12
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Build, Test JE (OpenBSD)
uses: vmactions/openbsd-vm@v0
with:
usesh: true
sync: sshfs
prepare: |
rdate time.cloudflare.com || true
pkg_add curl zip gmake nasm pcre2 libedit
run: |
rm -f jobdone
/sbin/ldconfig -r
ls -al ~/
ls -al ~/.ssh
echo "Host *" >>~/.ssh/config || true
echo " ServerAliveInterval 20" >>~/.ssh/config || true
echo " ServerAliveCountMax 2000000" >>~/.ssh/config || true
echo "client ssh config"
cat ~/.ssh/config || true
export CC=clang
export USE_SLEEF=1
script/buildga.sh openbsd || exit 1
script/testga.sh openbsd || exit 1
ls -l j64
zip -r obsd64d.zip j64
cd j64
strip -S jconsole
strip -S libj.so
strip -S libjavx2.so || true
strip -S libjavx512.so || true
strip -S libtsdll.so
strip -S jamalgam || true
strip -S libgmp.so
cd -
ls -l j64
zip -r obsd64.zip j64
touch jobdone
- name: Check Status (OpenBSD)
run: |
test -f jobdone || exit 1
- name: Release JE (OpenBSD)
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "obsd64.zip,obsd64d.zip"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
- name: Copy Test (OpenBSD)
uses: actions/upload-artifact@v2
with:
name: dist
path: testopenbsd.txt
# openbsd --------------------------------------------------------------
jeopenbsd2:
name: JE (OpenBSD cross-platform-actions)
runs-on: macos-12
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Build, Test JE (OpenBSD)
uses: cross-platform-actions/[email protected]
with:
operating_system: openbsd
architecture: x86-64
version: '7.2'
shell: bash
run: |
rm -f jobdone
sudo rdate time.cloudflare.com || true
sudo pkg_add curl zip gmake nasm pcre2 libedit
/sbin/ldconfig -r
ls -al ~/
ls -al ~/.ssh
sudo echo "Host *" >>~/.ssh/config || true
sudo echo " ServerAliveInterval 20" >>~/.ssh/config || true
sudo echo " ServerAliveCountMax 2000000" >>~/.ssh/config || true
echo "client ssh config"
sudo cat ~/.ssh/config || true
export CC=clang
export USE_SLEEF=1
script/buildga.sh openbsd || exit 1
script/testga.sh openbsd || exit 1
ls -l j64
zip -r obsd64d.zip j64
cd j64
strip -S jconsole
strip -S libj.so
strip -S libjavx2.so || true
strip -S libjavx512.so || true
strip -S libtsdll.so
strip -S jamalgam || true
strip -S libgmp.so
cd -
ls -l j64
zip -r obsd64.zip j64
touch jobdone
- name: Check Status (OpenBSD)
run: |
test -f jobdone || exit 1
- name: Release JE (OpenBSD)
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "obsd64.zip,obsd64d.zip"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
- name: Copy Test (OpenBSD)
uses: actions/upload-artifact@v2
with:
name: dist
path: testopenbsd.txt
# openbsd arm64 --------------------------------------------------------
# too slow, comment out script/testga.sh openbsd || exit 1
jeopenbsdarm64:
name: JE (OpenBSD arm64)
runs-on: ubuntu-22.04
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Build, Test JE (OpenBSD arm64)
uses: cross-platform-actions/[email protected]
with:
operating_system: openbsd
architecture: arm64
version: '7.2'
shell: bash
run: |
rm -f jobdone
sudo rdate time.cloudflare.com || true
sudo pkg_add curl zip gmake gmp pcre2 libedit
/sbin/ldconfig -r
ls -al ~/
ls -al ~/.ssh
sudo echo "Host *" >>~/.ssh/config || true
sudo echo " ServerAliveInterval 20" >>~/.ssh/config || true
sudo echo " ServerAliveCountMax 2000000" >>~/.ssh/config || true
echo "client ssh config"
sudo cat ~/.ssh/config || true
export CC=clang
export USE_SLEEF=1
script/buildga.sh openbsd || exit 1
ls -l j64
zip -r obsdarm64d.zip j64
cd j64
strip -S jconsole
strip -S libj.so
strip -S libtsdll.so
strip -S jamalgam || true
strip -S libgmp.so
cd -
ls -l j64
zip -r obsdarm64.zip j64
touch jobdone
- name: Check Status (OpenBSD arm64)
run: |
test -f jobdone || exit 1
- name: Release JE (OpenBSD arm64)
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "obsdarm64.zip,obsdarm64d.zip"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
- name: Copy Test (OpenBSD arm64)
uses: actions/upload-artifact@v2
with:
name: dist
path: testopenbsdarm64.txt
# freebsd --------------------------------------------------------------
jefreebsd:
name: JE (FreeBSD vmactions)
if: ${{ false }}
runs-on: macos-12
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Build, Test JE (FreeBSD)
uses: vmactions/freebsd-vm@v0
with:
usesh: true
sync: sshfs
prepare: |
rdate time.cloudflare.com || true
pkg install -y curl zip gmake nasm pcre2 libedit
run: |
rm -f jobdone
/sbin/ldconfig -r
ls -al ~/
ls -al ~/.ssh
echo "Host *" >>~/.ssh/config || true
echo " ServerAliveInterval 20" >>~/.ssh/config || true
echo " ServerAliveCountMax 2000000" >>~/.ssh/config || true
echo "client ssh config"
cat ~/.ssh/config || true
export CC=clang
export USE_SLEEF=1
script/buildga.sh freebsd || exit 1
script/testga.sh freebsd || exit 1
ls -l j64
zip -r fbsd64d.zip j64
cd j64
strip -S jconsole
strip -S libj.so
strip -S libjavx2.so || true
strip -S libjavx512.so || true
strip -S jamalgam || true
strip -S libtsdll.so
strip -S libgmp.so
cd -
ls -l j64
zip -r fbsd64.zip j64
touch jobdone
- name: Check Status (FreeBSD)
run: |
test -f jobdone || exit 1
- name: Release JE (FreeBSD)
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "fbsd64.zip,fbsd64d.zip"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
- name: Copy Test (FreeBSD)
uses: actions/upload-artifact@v2
with:
name: dist
path: testfreebsd.txt
# freebsd --------------------------------------------------------------
jefreebsd2:
name: JE (FreeBSD cross-platform-actions)
runs-on: ubuntu-latest
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Build, Test JE (FreeBSD)
uses: cross-platform-actions/[email protected]
with:
operating_system: freebsd
architecture: x86-64
version: '13.1'
shell: bash
run: |
rm -f jobdone
export IGNORE_OSVERSION=yes
sudo rdate time.cloudflare.com || true
sudo pkg install -y curl zip gmake nasm pcre2 libedit
/sbin/ldconfig -r
ls -al ~/
ls -al ~/.ssh
sudo echo "Host *" >>~/.ssh/config || true
sudo echo " ServerAliveInterval 20" >>~/.ssh/config || true
sudo echo " ServerAliveCountMax 2000000" >>~/.ssh/config || true
echo "client ssh config"
sudo cat ~/.ssh/config || true
export CC=clang
export USE_SLEEF=1
script/buildga.sh freebsd || exit 1
script/testga.sh freebsd || exit 1
ls -l j64
zip -r fbsd64d.zip j64
cd j64
strip -S jconsole
strip -S libj.so
strip -S libjavx2.so || true
strip -S libjavx512.so || true
strip -S libtsdll.so
strip -S jamalgam || true
strip -S libgmp.so
cd -
ls -l j64
zip -r fbsd64.zip j64
touch jobdone
- name: Check Status (FreeBSD)
run: |
test -f jobdone || exit 1
- name: Release JE (FreeBSD)
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "fbsd64.zip,fbsd64d.zip"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
- name: Copy Test (FreeBSD)
uses: actions/upload-artifact@v2
with:
name: dist
path: testfreebsd.txt
# android --------------------------------------------------------------
jeandroid:
name: JE (android)
runs-on: macos-12
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Setup Environment (android)
uses: nttld/setup-ndk@v1
with:
ndk-version: r25c
local-cache: true
- name: Build JE (android)
env:
CC: clang
USE_SLEEF: 1
run: |
script/buildga.sh android || exit 1
- name: Release JE (android)
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "androidlibs.zip"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
# - name: Copy Test (android)
# wasm -----------------------------------------------------------------
jewasm:
name: JE (wasm)
runs-on: ubuntu-22.04
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Setup Environment (wasm)
uses: mymindstorm/setup-emsdk@v11
- name: Build, Test JE (wasm)
env:
CC: emcc
USE_SLEEF: 1
run: |
script/buildga.sh wasm || exit 1
script/testga.sh wasm || exit 1
ls -l j32
zip -r wasm32.zip j32
- name: Release JE (wasm)
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "wasm32.zip"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
# - name: Copy Test (wasm)
# windows --------------------------------------------------------------
jewin:
name: JE (Windows)
runs-on: windows-2022
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Setup Environment (Windows)
uses: ilammy/msvc-dev-cmd@v1
with:
arch: amd64
- name: Build JE (Windows)
shell: cmd
run: |
script\buildga.cmd x64
- name: Test JE (Windows)
shell: cmd
run: |
script\testga.cmd x64
- name: Compress Files (Windows)
shell: pwsh
run: Compress-Archive j64 w64.zip
- name: Release JE (Windows)
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "w64.zip"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
- name: Copy Test (Windows)
uses: actions/upload-artifact@v2
with:
name: dist
path: testwin.txt
# windows --------------------------------------------------------------
jewin32:
name: JE (Windows 32)
runs-on: windows-2022
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Setup Environment (Windows 32)
uses: ilammy/msvc-dev-cmd@v1
with:
arch: x86
- name: Build JE (Windows 32)
shell: cmd
run: |
script\buildga.cmd x86
- name: Test JE (Windows 32)
shell: cmd
run: |
script\testga.cmd x86
- name: Compress Files (Windows 32)
shell: pwsh
run: Compress-Archive j32 w32.zip
- name: Release JE (Windows 32)
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "w32.zip"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
- name: Copy Test (Windows 32)
uses: actions/upload-artifact@v2
with:
name: dist
path: testwin32.txt
# get tests ------------------------------------------------------------
tests:
name: Test Results
runs-on: ubuntu-20.04
needs: [jelinux, jelinux-gcc, jemacos, jerpi64, jerpi32, jewin, jewin32, jeandroid, jefreebsd2, jeopenbsd2]
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Get Test Results
uses: actions/download-artifact@v2
with:
name: dist
- name: Merge Test Results
run: script/testgares.sh
- name: Copy Tests to Build
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "tests.txt"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
webhook:
name: Run Webhook
runs-on: ubuntu-22.04
needs: tests
steps:
- name: update server
uses: distributhor/workflow-webhook@v2
env:
webhook_url: ${{ secrets.WEBHOOK_URL }}
webhook_secret: ${{ secrets.WEBHOOK_SECRET }}
data: '{ "id": "jebuild" }'