9
9
10
10
env :
11
11
AUTOTESTER_LIBS_GROUP : ${{github.workspace}}/toolchain/clibs.8xg
12
- AUTOTESTER_ROM : ${{github.workspace}}/secrets/84pce_515_53 .rom
12
+ AUTOTESTER_ROM : ${{github.workspace}}/secrets/83pce_515_530 .rom
13
13
CEDEV : ${{github.workspace}}/CEdev
14
14
CEDEV_BIN : ${{github.workspace}}/CEdev/bin
15
15
CEDEV_EXAMPLES : ${{github.workspace}}/CEdev/examples
16
16
CEDEV_TEST : ${{github.workspace}}/toolchain/test
17
17
CEMU_PATH : ${{github.workspace}}/CEmu
18
18
FASMG_DOMAIN : https://flatassembler.net
19
19
FASMG_PATH : ${{github.workspace}}/fasmg
20
- HOST_DOMAIN : https://jacobly.com
21
20
SECRETS_PATH : ${{github.workspace}}/secrets
22
21
TOOLCHAIN_PATH : ${{github.workspace}}/toolchain
23
22
@@ -31,42 +30,34 @@ jobs:
31
30
- nul : /dev/null
32
31
- runs-on : macos-latest
33
32
fasmg : /source/macos/x64/fasmg
33
+ ez80-bins-suffix : macOS_arm
34
34
install-output-ext : " dmg"
35
35
- runs-on : windows-latest
36
36
fasmg : /fasmg.exe
37
+ ez80-bins-suffix : windows
37
38
env : " env:"
38
39
exe : .exe
39
40
nul : nul
40
41
ldflags : LDFLAGS="-static-libgcc -static-libstdc++ -static"
41
42
install-output-ext : " zip"
42
43
- runs-on : ubuntu-20.04
44
+ ez80-bins-suffix : ubuntu
43
45
fasmg : /fasmg.x64
44
46
install-output-ext : " tar.gz"
45
47
runs-on : ${{matrix.runs-on}}
46
48
steps :
47
49
- name : Prepare Build Environment
48
50
run : cmake -E echo >> $${{matrix.env}}GITHUB_PATH ${{env.CEDEV_BIN}}
49
51
50
- - name : Download ez80-clang
51
- id : ez80-clang
52
+ - name : Download ez80-clang and ez80-link
53
+ id : ez80-bins
52
54
uses :
carlosperate/[email protected]
53
55
with :
54
- file-url : ${{env.HOST_DOMAIN}}/artifact?repo= llvm-project&branch=z80&file= ez80-clang${{matrix.exe}}- ${{matrix.runs-on}}Release
56
+ file-url : https://github.com/CE-Programming/ llvm-project/releases/download/nightly/ ez80-clang-link_ ${{matrix.ez80-bins-suffix}}_nightly.zip
55
57
- name : Extract ez80-clang
56
58
57
59
with :
58
- pathSource : ${{steps.ez80-clang.outputs.file-path}}
59
- pathTarget : ${{env.CEDEV_BIN}}
60
-
61
- - name : Download ez80-link
62
- id : ez80-link
63
- uses :
carlosperate/[email protected]
64
- with :
65
- file-url : ${{env.HOST_DOMAIN}}/artifact?repo=llvm-project&branch=z80&file=ez80-link${{matrix.exe}}-${{matrix.runs-on}}Release
66
- - name : Extract ez80-link
67
-
68
- with :
69
- pathSource : ${{steps.ez80-link.outputs.file-path}}
60
+ pathSource : ${{steps.ez80-bins.outputs.file-path}}
70
61
pathTarget : ${{env.CEDEV_BIN}}
71
62
72
63
- name : Download Fasmg Download Page
96
87
run : cmake -E copy fasmg${{matrix.fasmg}} ${{env.CEDEV_BIN}}/fasmg${{matrix.exe}}
97
88
98
89
- name : Checkout CEmu
99
- uses : actions/checkout@v3
90
+ uses : actions/checkout@v4
100
91
with :
101
92
repository : ${{github.repository_owner}}/CEmu
102
93
ref : latest-stable
@@ -119,7 +110,7 @@ jobs:
119
110
fasmg ${{matrix.nul}} ${{matrix.nul}}
120
111
121
112
- name : Checkout Toolchain
122
- uses : actions/checkout@v3
113
+ uses : actions/checkout@v4
123
114
with :
124
115
path : ${{env.TOOLCHAIN_PATH}}
125
116
submodules : recursive
@@ -197,19 +188,21 @@ jobs:
197
188
cd ${{env.CEDEV}}/.. && 7z a -tzip CEdev-${{runner.os}}.${{matrix.install-output-ext}} CEdev
198
189
199
190
- name : Upload CEdev
200
- uses : actions/upload-artifact@v2
191
+ uses : actions/upload-artifact@v4
201
192
with :
202
193
name : CEdev-${{runner.os}}
203
194
path : CEdev-${{runner.os}}.${{matrix.install-output-ext}}
204
195
205
196
- name : Upload Libraries
206
- uses : actions/upload-artifact@v2
197
+ if : runner.os == 'Linux'
198
+ uses : actions/upload-artifact@v4
207
199
with :
208
200
name : clibs
209
201
path : ${{env.AUTOTESTER_LIBS_GROUP}}
210
202
211
203
- name : Upload Libraries Zip
212
- uses : actions/upload-artifact@v2
204
+ if : runner.os == 'Linux'
205
+ uses : actions/upload-artifact@v4
213
206
with :
214
207
name : clibs_separately_in_zip
215
208
path : ${{github.workspace}}/toolchain/clibs
@@ -231,7 +224,7 @@ jobs:
231
224
run : cmake -E echo >> $${{matrix.env}}GITHUB_PATH ${{env.CEDEV_BIN}}
232
225
233
226
- name : Download CEdev
234
- uses : actions/download-artifact@v3
227
+ uses : actions/download-artifact@v4
235
228
with :
236
229
name : CEdev-${{runner.os}}
237
230
path : ${{github.workspace}}
@@ -251,7 +244,7 @@ jobs:
251
244
252
245
# checkout only for test files -- contents should not be used otherwise.
253
246
- name : Checkout Toolchain
254
- uses : actions/checkout@v3
247
+ uses : actions/checkout@v4
255
248
with :
256
249
path : ${{env.TOOLCHAIN_PATH}}
257
250
persist-credentials : false
@@ -266,24 +259,15 @@ jobs:
266
259
- name : Build Examples
267
260
run : make -j4 -C ${{env.CEDEV_EXAMPLES}} COMPRESSED=${{matrix.compressed}} V=1
268
261
269
- - name : Download Secrets
270
- id : download-secrets
271
- uses :
carlosperate/[email protected]
272
- with :
273
- file-url : ${{env.HOST_DOMAIN}}/${{github.repository_owner}}/secrets
274
- location : ${{env.SECRETS_PATH}}
275
- - name : Decrypt Secrets
276
- env :
277
- KEY : ${{secrets.SYMMETRIC_KEY_256}}
278
- run : openssl enc -d -aes-256-cbc -iv a581c6a54a2b51143fecad6794deb32a -K "$${{matrix.env}}KEY" -in ${{steps.download-secrets.outputs.file-path}} -out ${{env.SECRETS_PATH}}/secrets.7z
279
- - name : Extract Secrets
280
-
262
+ - name : Download CI test secrets
263
+ uses : actions/checkout@v4
281
264
with :
282
- pathSource : ${{env.SECRETS_PATH}}/secrets.7z
283
- pathTarget : ${{env.SECRETS_PATH}}
265
+ repository : " CE-Programming/ci-test-secrets"
266
+ token : ${{ secrets.GH_PAT_CI_SECRETS }}
267
+ path : " secrets"
284
268
285
269
- name : Download Libraries
286
- uses : actions/download-artifact@v3
270
+ uses : actions/download-artifact@v4
287
271
with :
288
272
name : clibs
289
273
path : ${{env.TOOLCHAIN_PATH}}
@@ -343,7 +327,7 @@ jobs:
343
327
cmake -E echo >> $${{matrix.env}}GITHUB_PATH $${{matrix.env}}HOME/.local/bin
344
328
345
329
- name : Checkout Toolchain
346
- uses : actions/checkout@v3
330
+ uses : actions/checkout@v4
347
331
with :
348
332
path : ${{env.TOOLCHAIN_PATH}}
349
333
persist-credentials : false
@@ -380,22 +364,22 @@ jobs:
380
364
381
365
steps :
382
366
- name : Download CEdev Linux
383
- uses : actions/download-artifact@v3
367
+ uses : actions/download-artifact@v4
384
368
with :
385
369
name : CEdev-Linux
386
370
path : ${{github.workspace}}
387
371
- name : Download CEdev Windows
388
- uses : actions/download-artifact@v3
372
+ uses : actions/download-artifact@v4
389
373
with :
390
374
name : CEdev-Windows
391
375
path : ${{github.workspace}}
392
376
- name : Download CEdev macOS
393
- uses : actions/download-artifact@v3
377
+ uses : actions/download-artifact@v4
394
378
with :
395
379
name : CEdev-macOS
396
380
path : ${{github.workspace}}
397
381
- name : Download CE Libraries
398
- uses : actions/download-artifact@v3
382
+ uses : actions/download-artifact@v4
399
383
with :
400
384
name : clibs
401
385
path : ${{github.workspace}}
0 commit comments