Debian Codegraph @

.github/workflows/release.yaml

raw symbols SCIP
1 name: create-github-release
2
3 on:
4 push:
5 branches: [ master ]
6
7 env:
8 # Used as the name when uploading or downloading the artifact for passing
9 # configuration data from the Setup job to those dependent on it.
10 CONFIG_ARTIFACT: release-config
11 # Used as the path for the file with the configuration data passed from
12 # the Setup job to those dependent on it.
13 CONFIG_ARTIFACT_PATH: release-config.txt
14 # Used as the name when uploading or downloading the artifact with the
15 # converted document files.
16 DOC_ARTIFACT: release-docs
17 # Used as the path for the file with the converted document files.
18 DOC_ARTIFACT_PATH: release-docs.tar
19 # Used as the name when uploading or downloading the artifact for passing
20 # the name of the source archive.
21 SRC_ARTIFACT: release-src
22 # Used as the path for the file with the name of the source archive in it.
23 SRC_ARTIFACT_PATH: release-src.txt
24 # Used as the name when uploading or downloading the artifact holding
25 # the source archive.
26 SRC_ARCHIVE_ARTIFACT: release-src-archive
27 # Used as the name when uploading or downloading the artifact for passing
28 # the name of the Windows archive.
29 WIN_ARTIFACT: release-win
30 # Used as the path for the file with the name of the Windows archive in it.
31 WIN_ARTIFACT_PATH: release-win.txt
32 # Used as the name when uploading or downloading the artifact holding
33 # the Windows archive.
34 WIN_ARCHIVE_ARTIFACT: release-win-archive
35 # Used as the name when uploading or downloading the artifact for passing
36 # the name of the Mac archive.
37 MAC_ARTIFACT: release-mac
38 # Used as the path for the file with the name of the Mac archive in it.
39 MAC_ARTIFACT_PATH: release-mac.txt
40 # Used as the name when uploading or downloading the artifact holding
41 # the Mac archive.
42 MAC_ARCHIVE_ARTIFACT: release-mac-archive
43 # Used as the name when uploading or downloading the artifact for passing
44 # the name of the Nintendo NDS archive.
45 NIN_DS_ARTIFACT: release-ds
46 # Used as the path for the file with the name of the Nintendo NDS archive
47 # in it.
48 NIN_DS_ARTIFACT_PATH: release-ds.txt
49 # Used as the name when uploading or downloading the artifact holding
50 # the Nintendo DS archive.
51 NIN_DS_ARCHIVE_ARTIFACT: release-ds-archive
52 # Used as the name when uploading or downloading the artifact for passing
53 # the name of the Nintendo 3DS archive.
54 NIN_3DS_ARTIFACT: release-3ds
55 # Used as the path for the file with the name of the Nintendo 3DS archive
56 # in it.
57 NIN_3DS_ARTIFACT_PATH: release-3ds.txt
58 # Used as the name when uploading or downloading the artifact holding
59 # the Nintendo 3DS archive.
60 NIN_3DS_ARCHIVE_ARTIFACT: release-3ds-archive
61
62 jobs:
63 setup:
64 name: Setup
65 runs-on: ubuntu-latest
66 steps:
67 # Need commit history and tags for scripts/version.sh to work as expected
68 # so use 0 for fetch-depth.
69 - name: Clone Project
70 uses: actions/checkout@v3
71 with:
72 fetch-depth: 0
73
74 - name: Extract Names from Makefile
75 id: get_names
76 run: |
77 name=`sed -E -n -e 's/^[[:blank:]]*NAME[[:blank:]]+=[[:blank:]]+//p' src/Makefile.src | tr ' #' '\t\t' | tail -1 | cut -f 1`
78 echo "name=$name" >> $GITHUB_OUTPUT
79 prog=`sed -E -n -e 's/^[[:blank:]]*PROGNAME[[:blank:]]+=[[:blank:]]+//p' src/Makefile.src | tr ' #' '\t\t' | tail -1 | cut -f 1`
80 echo "prog=$prog" >> $GITHUB_OUTPUT
81
82 - name: Set Release Version
83 id: get_release_vars
84 run: |
85 version=`scripts/version.sh`
86 echo "version=$version" >> $GITHUB_OUTPUT
87 prerelease=`echo $version | awk '/^[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+$/ { print "false" ; exit 0 } ; { print "true"; exit 0 } ;'`
88 echo "prerelease=$prerelease" >> $GITHUB_OUTPUT
89 # Mark anything that isn't a prerelease as a draft.
90 draft=true
91 if test x$prerelease = xtrue ; then
92 draft=false
93 fi
94 echo "draft=$draft" >> $GITHUB_OUTPUT
95
96 # The quoting here may be too simple-minded: what if there are single
97 # quotes in the steps.*.outputs.* stuff.
98 - name: Create Artifact with Configuration Details
99 run: |
100 echo name= '${{ steps.get_names.outputs.name }}' > $CONFIG_ARTIFACT_PATH
101 echo prog= '${{ steps.get_names.outputs.prog }}' >> $CONFIG_ARTIFACT_PATH
102 echo version= '${{ steps.get_release_vars.outputs.version }}' >> $CONFIG_ARTIFACT_PATH
103 echo prerelease= '${{ steps.get_release_vars.outputs.prerelease }}' >> $CONFIG_ARTIFACT_PATH
104 echo draft= '${{ steps.get_release_vars.outputs.draft }}' >> $CONFIG_ARTIFACT_PATH
105
106 - name: Upload Artifact for Use by Dependent Steps
107 uses: actions/upload-artifact@v3
108 with:
109 name: ${{ env.CONFIG_ARTIFACT }}
110 path: ${{ env.CONFIG_ARTIFACT_PATH }}
111 retention-days: 1
112
113 docconvert:
114 name: Document Conversion
115 runs-on: ubuntu-latest
116 steps:
117 # Need both Sphinx (Python documentation tool) and a 3rd party theme.
118 # Also install pip (to get theme), gcc, automake, autoconf, make
119 # (those four are so configuration and "make manual" work), and git
120 # (so scripts/version.sh works).
121 - name: Install Build Dependencies
122 id: build_dep
123 run: |
124 sudo apt-get update
125 sudo apt-get install autoconf automake gcc make sphinx-common git
126 use_python3=`python --version 2>&1 | awk "/^Python 3\\./ { print \"YES\" ; exit 0 ; } ; { print \"NO\" ; exit 0; }"`
127 if test X$use_python3 == XYES ; then
128 sudo apt-get install python3-pip
129 else
130 sudo apt-get install python-pip
131 fi
132 pip install sphinx-better-theme
133
134 # Need commit history and tags for scripts/version.sh to work as expected
135 # so use 0 for fetch-depth.
136 - name: Clone Project
137 uses: actions/checkout@v3
138 with:
139 fetch-depth: 0
140
141 - name: Convert
142 run: |
143 ./autogen.sh
144 ./configure --with-no-install --with-sphinx
145 make manual
146
147 - name: Archive
148 run: |
149 tar -cf ${{ env.DOC_ARTIFACT_PATH }} docs/_build/html
150
151 - name: Upload Artifact
152 uses: actions/upload-artifact@v3
153 with:
154 name: ${{ env.DOC_ARTIFACT }}
155 path: ${{ env.DOC_ARTIFACT_PATH }}
156 retention-days: 1
157
158 source:
159 needs: setup
160 name: Source Archive
161 runs-on: ubuntu-latest
162 steps:
163 - name: Download Artifact with Configuration Information
164 uses: actions/download-artifact@v3
165 with:
166 name: ${{ env.CONFIG_ARTIFACT }}
167
168 - name: Extract Configuration Information and Store in Step Outputs
169 id: store_config
170 run: |
171 name=`sed -E -n -e 's/name= //p' $CONFIG_ARTIFACT_PATH`
172 echo "name=$name" >> $GITHUB_OUTPUT
173 prog=`sed -E -n -e 's/prog= //p' $CONFIG_ARTIFACT_PATH`
174 echo "prog=$prog" >> $GITHUB_OUTPUT
175 version=`sed -E -n -e 's/version= //p' $CONFIG_ARTIFACT_PATH`
176 echo "version=$version" >> $GITHUB_OUTPUT
177
178 - name: Install Build Dependencies
179 run: |
180 sudo apt-get update
181 sudo apt-get install automake autoconf git make
182
183 # Need commit history and tags for scripts/version.sh to work as expected
184 # so use 0 for fetch-depth.
185 - name: Clone Project
186 uses: actions/checkout@v3
187 with:
188 fetch-depth: 0
189
190 - name: Create Source Archive
191 id: create_source_archive
192 run: |
193 ./autogen.sh
194 ./configure
195 archive_prefix=${{ steps.store_config.outputs.name }}-${{ steps.store_config.outputs.version }}
196 echo "archive_file=${archive_prefix}.tar.gz" >> $GITHUB_OUTPUT
197 make TAG="$archive_prefix" OUT="$archive_prefix".tar.gz dist
198
199 - name: Create Artifact with Source Archive Path
200 run: |
201 echo archive_path= '${{ steps.create_source_archive.outputs.archive_file }}' > $SRC_ARTIFACT_PATH
202
203 - name: Upload Artifact with Source Archive Path
204 uses: actions/upload-artifact@v3
205 with:
206 name: ${{ env.SRC_ARTIFACT }}
207 path: ${{ env.SRC_ARTIFACT_PATH }}
208 retention-days: 1
209
210 - name: Upload Source Archive as Artifact
211 uses: actions/upload-artifact@v3
212 with:
213 name: ${{ env.SRC_ARCHIVE_ARTIFACT }}
214 path: ${{ steps.create_source_archive.outputs.archive_file }}
215 retention-days: 1
216
217 windows:
218 needs: [setup, docconvert]
219 name: Windows
220 runs-on: ubuntu-22.04
221 steps:
222 - name: Download Artifact with Configuration Information
223 uses: actions/download-artifact@v3
224 with:
225 name: ${{ env.CONFIG_ARTIFACT }}
226
227 - name: Extract Configuration Information and Store in Step Outputs
228 id: store_config
229 run: |
230 name=`sed -E -n -e 's/name= //p' $CONFIG_ARTIFACT_PATH`
231 echo "name=$name" >> $GITHUB_OUTPUT
232 prog=`sed -E -n -e 's/prog= //p' $CONFIG_ARTIFACT_PATH`
233 echo "prog=$prog" >> $GITHUB_OUTPUT
234 version=`sed -E -n -e 's/version= //p' $CONFIG_ARTIFACT_PATH`
235 echo "version=$version" >> $GITHUB_OUTPUT
236
237 - name: Install Build Dependencies
238 run: |
239 sudo apt-get update
240 sudo apt-get install gcc-mingw-w64 automake autoconf git make zip
241
242 # Need commit history and tags for scripts/version.sh to work as expected
243 # so use 0 for fetch-depth.
244 - name: Clone Project
245 uses: actions/checkout@v3
246 with:
247 fetch-depth: 0
248
249 - name: Download Artifact with Converted Documents
250 uses: actions/download-artifact@v3
251 with:
252 name: ${{ env.DOC_ARTIFACT }}
253
254 - name: Extract Converted Documents
255 run: |
256 tar -xf ${{ env.DOC_ARTIFACT_PATH }}
257
258 # Override the default CFLAGS, -g -O2, to get a smaller executable (~2
259 # MB versus ~7 MB), all due to compiling without debugging symbols.
260 # Adding the option to strip symbols and relocation information, -s,
261 # or the option to optimize for size, -Os, didn't further reduce the
262 # size of the executable when using mingw 6.0.0 on Debian buster.
263 - name: Create Windows Archive
264 id: create_windows_archive
265 run: |
266 ./autogen.sh
267 env CFLAGS="-O2" ./configure --enable-release --enable-win --build=i686-pc-linux-gnu --host=i686-w64-mingw32 --enable-skip-old-int-typedefs
268 make
269 cp src/${{ steps.store_config.outputs.prog }}.exe src/win/dll/libpng12.dll src/win/dll/zlib1.dll .
270 archive_prefix=${{ steps.store_config.outputs.name }}-${{ steps.store_config.outputs.version }}
271 echo "archive_file=${archive_prefix}-win.zip" >> $GITHUB_OUTPUT
272 scripts/pkg_win $archive_prefix ${archive_prefix}-win.zip
273
274 - name: Create Artifact with Windows Archive Path
275 run: |
276 echo archive_path= '${{ steps.create_windows_archive.outputs.archive_file }}' > $WIN_ARTIFACT_PATH
277
278 - name: Upload Artifact with Windows Archive Path
279 uses: actions/upload-artifact@v3
280 with:
281 name: ${{ env.WIN_ARTIFACT }}
282 path: ${{ env.WIN_ARTIFACT_PATH }}
283 retention-days: 1
284
285 - name: Upload Windows Archive as Artifact
286 uses: actions/upload-artifact@v3
287 with:
288 name: ${{ env.WIN_ARCHIVE_ARTIFACT }}
289 path: ${{ steps.create_windows_archive.outputs.archive_file }}
290 retention-days: 1
291
292 mac:
293 needs: [setup, docconvert]
294 name: Mac
295 runs-on: macos-latest
296 steps:
297 - name: Download Artifact with Configuration Information
298 uses: actions/download-artifact@v3
299 with:
300 name: ${{ env.CONFIG_ARTIFACT }}
301
302 - name: Extract Configuration Information and Store in Step Outputs
303 id: store_config
304 run: |
305 name=`sed -E -n -e 's/name= //p' $CONFIG_ARTIFACT_PATH`
306 echo "name=$name" >> $GITHUB_OUTPUT
307 prog=`sed -E -n -e 's/prog= //p' $CONFIG_ARTIFACT_PATH`
308 echo "prog=$prog" >> $GITHUB_OUTPUT
309 version=`sed -E -n -e 's/version= //p' $CONFIG_ARTIFACT_PATH`
310 echo "version=$version" >> $GITHUB_OUTPUT
311
312 # Need commit history and tags for scripts/version.sh to work as expected
313 # so use 0 for fetch-depth.
314 - name: Clone Project
315 uses: actions/checkout@v3
316 with:
317 fetch-depth: 0
318
319 - name: Download Artifact with Converted Documents
320 uses: actions/download-artifact@v3
321 with:
322 name: ${{ env.DOC_ARTIFACT }}
323
324 - name: Extract Converted Documents
325 run: |
326 tar -xf ${{ env.DOC_ARTIFACT_PATH }}
327
328 # An SDK that supports building x86_64 and arm64 objects is currently
329 # necessary unless the default list of architectures, ARCHS, in
330 # Makefile.osx is overridden. If the default SDK does not handle that,
331 # setting SDKROOT to point to an installed SDK that does would be one
332 # workaround. Override the default OPT (-O2) to get the equivalent of
333 # what --enable-release and --enable-skip-old-int-typedefs does for
334 # builds using configure.
335 - name: Create Mac Archive
336 id: create_mac_archive
337 run: |
338 cd src
339 env OPT="-O2 -DNDEBUG -DSKIP_ANGBAND_OLD_INT_TYPEDEFS" make -f Makefile.osx dist
340 archive_prefix=${{ steps.store_config.outputs.name }}-${{ steps.store_config.outputs.version }}-osx
341 echo "archive_file=${archive_prefix}.dmg" >> $GITHUB_OUTPUT
342
343 - name: Create Artifact with Mac Archive Path
344 run: |
345 echo archive_path= '${{ steps.create_mac_archive.outputs.archive_file }}' > $MAC_ARTIFACT_PATH
346
347 - name: Upload Artifact with Mac Archive Path
348 uses: actions/upload-artifact@v3
349 with:
350 name: ${{ env.MAC_ARTIFACT }}
351 path: ${{ env.MAC_ARTIFACT_PATH }}
352 retention-days: 1
353
354 - name: Upload Mac Archive as Artifact
355 uses: actions/upload-artifact@v3
356 with:
357 name: ${{ env.MAC_ARCHIVE_ARTIFACT }}
358 path: ${{ steps.create_mac_archive.outputs.archive_file }}
359 retention-days: 1
360
361 _3ds:
362 needs: [setup, docconvert]
363 name: Nintendo 3DS
364 runs-on: ubuntu-latest
365 container: devkitpro/devkitarm
366 steps:
367 - name: Download Artifact with Configuration Information
368 uses: actions/download-artifact@v3
369 with:
370 name: ${{ env.CONFIG_ARTIFACT }}
371
372 - name: Extract Configuration Information and Store in Step Outputs
373 id: store_config
374 run: |
375 name=`sed -E -n -e 's/name= //p' $CONFIG_ARTIFACT_PATH`
376 echo "name=$name" >> $GITHUB_OUTPUT
377 prog=`sed -E -n -e 's/prog= //p' $CONFIG_ARTIFACT_PATH`
378 echo "prog=$prog" >> $GITHUB_OUTPUT
379 version=`sed -E -n -e 's/version= //p' $CONFIG_ARTIFACT_PATH`
380 echo "version=$version" >> $GITHUB_OUTPUT
381
382 - name: Clone Project
383 uses: actions/checkout@v3
384 with:
385 fetch-depth: 0
386
387 - name: Download Artifact with Converted Documents
388 uses: actions/download-artifact@v3
389 with:
390 name: ${{ env.DOC_ARTIFACT }}
391
392 - name: Extract Converted Documents
393 run: |
394 tar -xf ${{ env.DOC_ARTIFACT_PATH }}
395
396 - name: Build Nintendo 3DS (3dsx)
397 id: create_nintendo_3ds_3dsx
398 shell: bash
399 run: |
400 pushd src/
401 make -f Makefile.3ds
402 popd
403 test -e src/${{ steps.store_config.outputs.prog }}.3dsx
404
405 - name: Setup cxitool
406 shell: bash
407 run: |
408 apt-get update && apt-get install -y build-essential automake autoconf autotools-dev
409 git clone -b cxi-stuff https://github.com/devkitPro/3dstools/
410 pushd 3dstools/
411 ./autogen.sh
412 ./configure
413 make install
414 popd
415
416 - name: Setup makerom
417 shell: bash
418 run: |
419 apt-get update && apt-get install -y build-essential libmbedtls-dev liblzma-dev libyaml-dev
420 git clone https://github.com/3DSGuy/Project_CTR/
421 pushd Project_CTR/makerom
422 make deps
423 make
424 cp -rv bin/makerom /usr/local/bin
425 popd
426
427 # The quoting to get prog may be too simple-minded: what if there
428 # are single quotes in the steps.*.outputs.* stuff. Restrict what's
429 # passed to cxitool's --name option to at most 8 characters since that
430 # is a limitation of that tool.
431 - name: Build Nintendo 3DS (cia)
432 id: create_nintendo_3ds_cia
433 shell: bash
434 run: |
435 pushd src/
436 prog='${{ steps.store_config.outputs.prog }}'
437 procname=`echo "$prog" | head -c 8`
438 test -e "$prog".3dsx
439 cxitool --name "$procname" "$prog".3dsx "$prog".cxi
440 makerom -v -f cia -o "$prog".cia -target t -i "$prog".cxi:0:0 -ignoresign -icon icon.smdh
441 test -e "$prog".cia
442 popd
443
444 - name: Create Nintendo 3DS Archive
445 id: create_nintendo_3ds_archive
446 shell: bash
447 run: |
448 archive_prefix=${{ steps.store_config.outputs.name }}-${{ steps.store_config.outputs.version }}
449 echo "archive_file=${archive_prefix}-3ds.zip" >> $GITHUB_OUTPUT
450 mkdir -v ${{ steps.store_config.outputs.prog }}/
451 cp -v src/${{ steps.store_config.outputs.prog }}.3dsx ${archive_prefix}.3dsx
452 cp -v src/${{ steps.store_config.outputs.prog }}.cia ${archive_prefix}.cia
453 cp -rv lib ${{ steps.store_config.outputs.prog }}/
454 zip -r ${archive_prefix}-3ds.zip ${archive_prefix}.3dsx ${archive_prefix}.cia ${{ steps.store_config.outputs.prog }}/
455
456 - name: Create Artifact with Nintendo 3DS Archive Path
457 run: |
458 echo archive_path= '${{ steps.create_nintendo_3ds_archive.outputs.archive_file }}' > $NIN_3DS_ARTIFACT_PATH
459
460 - name: Upload Artifact with Nintendo 3DS Archive Path
461 uses: actions/upload-artifact@v3
462 with:
463 name: ${{ env.NIN_3DS_ARTIFACT }}
464 path: ${{ env.NIN_3DS_ARTIFACT_PATH }}
465 retention-days: 1
466
467 - name: Upload Nintendo 3DS Archive as Artifact
468 uses: actions/upload-artifact@v3
469 with:
470 name: ${{ env.NIN_3DS_ARCHIVE_ARTIFACT }}
471 path: ${{ steps.create_nintendo_3ds_archive.outputs.archive_file }}
472 retention-days: 1
473
474 nds:
475 needs: [setup, docconvert]
476 name: Nintendo DS
477 runs-on: ubuntu-latest
478 container: devkitpro/devkitarm
479 steps:
480 - name: Download Artifact with Configuration Information
481 uses: actions/download-artifact@v3
482 with:
483 name: ${{ env.CONFIG_ARTIFACT }}
484
485 - name: Extract Configuration Information and Store in Step Outputs
486 id: store_config
487 run: |
488 name=`sed -E -n -e 's/name= //p' $CONFIG_ARTIFACT_PATH`
489 echo "name=$name" >> $GITHUB_OUTPUT
490 prog=`sed -E -n -e 's/prog= //p' $CONFIG_ARTIFACT_PATH`
491 echo "prog=$prog" >> $GITHUB_OUTPUT
492 version=`sed -E -n -e 's/version= //p' $CONFIG_ARTIFACT_PATH`
493 echo "version=$version" >> $GITHUB_OUTPUT
494
495 - name: Clone Project
496 uses: actions/checkout@v3
497 with:
498 fetch-depth: 0
499
500 - name: Download Artifact with Converted Documents
501 uses: actions/download-artifact@v3
502 with:
503 name: ${{ env.DOC_ARTIFACT }}
504
505 - name: Extract Converted Documents
506 run: |
507 tar -xf ${{ env.DOC_ARTIFACT_PATH }}
508
509 - name: Create Nintendo DS Archive
510 id: create_nintendo_ds_archive
511 shell: bash
512 run: |
513 pushd src/
514 make -f Makefile.nds
515 popd
516 test -e src/${{ steps.store_config.outputs.prog }}.nds
517
518 archive_prefix=${{ steps.store_config.outputs.name }}-${{ steps.store_config.outputs.version }}
519 echo "archive_file=${archive_prefix}-nds.zip" >> $GITHUB_OUTPUT
520 mkdir -v ${{ steps.store_config.outputs.prog }}/
521 cp -v src/${{ steps.store_config.outputs.prog }}.nds ${archive_prefix}.nds
522 cp -rv lib ${{ steps.store_config.outputs.prog }}/
523 zip -r ${archive_prefix}-nds.zip ${archive_prefix}.nds ${{ steps.store_config.outputs.prog }}/
524
525 - name: Create Artifact with Nintendo DS Archive Path
526 run: |
527 echo archive_path= '${{ steps.create_nintendo_ds_archive.outputs.archive_file }}' > $NIN_DS_ARTIFACT_PATH
528
529 - name: Upload Artifact with Nintendo DS Archive Path
530 uses: actions/upload-artifact@v3
531 with:
532 name: ${{ env.NIN_DS_ARTIFACT }}
533 path: ${{ env.NIN_DS_ARTIFACT_PATH }}
534 retention-days: 1
535
536 - name: Upload Nintendo DS Archive as Artifact
537 uses: actions/upload-artifact@v3
538 with:
539 name: ${{ env.NIN_DS_ARCHIVE_ARTIFACT }}
540 path: ${{ steps.create_nintendo_ds_archive.outputs.archive_file }}
541 retention-days: 1
542
543 release:
544 needs: [ setup, source, windows, mac, _3ds, nds ]
545 name: Create GitHub Release
546 runs-on: ubuntu-latest
547 steps:
548 - name: Download Artifact with Configuration Information
549 uses: actions/download-artifact@v3
550 with:
551 name: ${{ env.CONFIG_ARTIFACT }}
552
553 - name: Extract Configuration Information and Store in Step Outputs
554 id: store_config
555 run: |
556 version=`sed -E -n -e 's/version= //p' $CONFIG_ARTIFACT_PATH`
557 echo "version=$version" >> $GITHUB_OUTPUT
558 prerelease=`sed -E -n -e 's/prerelease= //p' $CONFIG_ARTIFACT_PATH`
559 echo "prerelease=$prerelease" >> $GITHUB_OUTPUT
560 draft=`sed -E -n -e 's/draft= //p' $CONFIG_ARTIFACT_PATH`
561 echo "draft=$draft" >> $GITHUB_OUTPUT
562
563 - name: Download Artifact with Source Archive Path
564 uses: actions/download-artifact@v3
565 with:
566 name: ${{ env.SRC_ARTIFACT }}
567
568 - name: Extract Source Archive Path and Store in Step Outputs
569 id: store_src
570 run: |
571 archive_path=`sed -E -n -e 's/archive_path= //p' $SRC_ARTIFACT_PATH`
572 echo "archive_path=$archive_path" >> $GITHUB_OUTPUT
573
574 - name: Download Artifact with Source Archive
575 uses: actions/download-artifact@v3
576 with:
577 name: ${{ env.SRC_ARCHIVE_ARTIFACT }}
578
579 - name: Download Artifact with Windows Archive Path
580 uses: actions/download-artifact@v3
581 with:
582 name: ${{ env.WIN_ARTIFACT }}
583
584 - name: Extract Windows Archive Path and Store in Step Outputs
585 id: store_win
586 run: |
587 archive_path=`sed -E -n -e 's/archive_path= //p' $WIN_ARTIFACT_PATH`
588 echo "archive_path=$archive_path" >> $GITHUB_OUTPUT
589
590 - name: Download Artifact with Windows Archive
591 uses: actions/download-artifact@v3
592 with:
593 name: ${{ env.WIN_ARCHIVE_ARTIFACT }}
594
595 - name: Download Artifact with Mac Archive Path
596 uses: actions/download-artifact@v3
597 with:
598 name: ${{ env.MAC_ARTIFACT }}
599
600 - name: Extract Mac Archive Path and Store in Step Outputs
601 id: store_mac
602 run: |
603 archive_path=`sed -E -n -e 's/archive_path= //p' $MAC_ARTIFACT_PATH`
604 echo "archive_path=$archive_path" >> $GITHUB_OUTPUT
605
606 - name: Download Artifact with Mac Archive
607 uses: actions/download-artifact@v3
608 with:
609 name: ${{ env.MAC_ARCHIVE_ARTIFACT }}
610
611 - name: Download Artifact with Nintendo 3DS Archive Path
612 uses: actions/download-artifact@v3
613 with:
614 name: ${{ env.NIN_3DS_ARTIFACT }}
615
616 - name: Extract Nintendo 3DS Archive Path and Store in Step Outputs
617 id: store_3ds
618 run: |
619 archive_path=`sed -E -n -e 's/archive_path= //p' $NIN_3DS_ARTIFACT_PATH`
620 echo "archive_path=$archive_path" >> $GITHUB_OUTPUT
621
622 - name: Download Artifact with Nintendo 3DS Archive
623 uses: actions/download-artifact@v3
624 with:
625 name: ${{ env.NIN_3DS_ARCHIVE_ARTIFACT }}
626
627 - name: Download Artifact with Nintendo DS Archive Path
628 uses: actions/download-artifact@v3
629 with:
630 name: ${{ env.NIN_DS_ARTIFACT }}
631
632 - name: Extract Nintendo DS Archive Path and Store in Step Outputs
633 id: store_ds
634 run: |
635 archive_path=`sed -E -n -e 's/archive_path= //p' $NIN_DS_ARTIFACT_PATH`
636 echo "archive_path=$archive_path" >> $GITHUB_OUTPUT
637
638 - name: Download Artifact with Nintendo DS Archive
639 uses: actions/download-artifact@v3
640 with:
641 name: ${{ env.NIN_DS_ARCHIVE_ARTIFACT }}
642
643 - name: Populate Release
644 uses: softprops/action-gh-release@v1
645 with:
646 tag_name: ${{ steps.store_config.outputs.version }}
647 name: ${{ steps.store_config.outputs.version }}
648 target_commitish: ${{ github.sha }}
649 draft: ${{ steps.store_config.outputs.draft }}
650 prerelease: ${{ steps.store_config.outputs.prerelease }}
651 files: |
652 ${{ steps.store_src.outputs.archive_path }}
653 ${{ steps.store_win.outputs.archive_path }}
654 ${{ steps.store_mac.outputs.archive_path }}
655 ${{ steps.store_3ds.outputs.archive_path }}
656 ${{ steps.store_ds.outputs.archive_path }}
657 token: ${{ secrets.GITHUB_TOKEN }}