mirror of
https://github.com/LNH-team/pico-loader.git
synced 2026-06-02 09:16:49 +02:00
workflow: add release pipeline
- Minor change in push pipeline to remove spaces from artifact name - Add artifact move step to add all files to a single folder before pushing to artifacts - Create release pipeline with the same steps that will upload a zipped package to every published release automatically
This commit is contained in:
15
.github/workflows/nightly.yml
vendored
15
.github/workflows/nightly.yml
vendored
@@ -47,14 +47,15 @@ jobs:
|
|||||||
- name: Run build script
|
- name: Run build script
|
||||||
run: |
|
run: |
|
||||||
make PICO_PLATFORM=${{ matrix.platform }}
|
make PICO_PLATFORM=${{ matrix.platform }}
|
||||||
mv picoLoader7.bin data/picoLoader7.bin
|
- name: Package artifact
|
||||||
mv picoLoader9_${{ matrix.platform }}.bin data/picoLoader9.bin
|
run: |
|
||||||
|
mkdir Pico_Loader_${{ matrix.platform }}
|
||||||
|
mv picoLoader7.bin data/aplist.bin data/savelist.bin Pico_Loader_${{ matrix.platform }}
|
||||||
|
mv picoLoader9_${{ matrix.platform }}.bin Pico_Loader_${{ matrix.platform }}/picoLoader9.bin
|
||||||
- name: Publish build to GH Actions
|
- name: Publish build to GH Actions
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
data/aplist.bin
|
Pico_Loader_${{ matrix.platform }}
|
||||||
data/savelist.bin
|
# For some reason without explicitly setting a name there is some odd conflicts
|
||||||
data/picoLoader7.bin
|
name: Pico_Loader_${{ matrix.platform }}
|
||||||
data/picoLoader9.bin
|
|
||||||
name: Pico Loader for ${{ matrix.platform }}
|
|
||||||
|
|||||||
65
.github/workflows/release.yml
vendored
Normal file
65
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
name: Build Pico Loader release
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pico_loader:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
platform: [
|
||||||
|
"ACE3DS",
|
||||||
|
"AK2",
|
||||||
|
"AKRPG",
|
||||||
|
"DSPICO",
|
||||||
|
"DSTT",
|
||||||
|
"EZP",
|
||||||
|
"G003",
|
||||||
|
"M3DS",
|
||||||
|
"R4",
|
||||||
|
"R4iDSN",
|
||||||
|
"SUPERCARD"
|
||||||
|
]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: skylyrac/blocksds:slim-v1.13.1
|
||||||
|
name: Build Pico Loader
|
||||||
|
env:
|
||||||
|
DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
||||||
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
|
||||||
|
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT: 1
|
||||||
|
DOTNET_NOLOGO: true
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- uses: actions/setup-dotnet@v4
|
||||||
|
with:
|
||||||
|
dotnet-version: 9.x
|
||||||
|
- name: Install zip
|
||||||
|
run:
|
||||||
|
apt-get update && apt-get -y install zip
|
||||||
|
- name: Run build script
|
||||||
|
run: |
|
||||||
|
make PICO_PLATFORM=${{ matrix.platform }}
|
||||||
|
- name: Package artifact
|
||||||
|
run: |
|
||||||
|
mkdir Pico_Loader_${{ matrix.platform }}
|
||||||
|
mv picoLoader7.bin data/aplist.bin data/savelist.bin Pico_Loader_${{ matrix.platform }}
|
||||||
|
mv picoLoader9_${{ matrix.platform }}.bin Pico_Loader_${{ matrix.platform }}/picoLoader9.bin
|
||||||
|
- name: Publish build to GH Actions
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
Pico_Loader_${{ matrix.platform }}
|
||||||
|
# For some reason without explicitly setting a name there is some odd conflicts
|
||||||
|
name: Pico_Loader_${{ matrix.platform }}
|
||||||
|
- name: Package for release
|
||||||
|
run: |
|
||||||
|
cd Pico_Loader_${{ matrix.platform }} && zip -r $PWD.zip *
|
||||||
|
- name: Release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
Pico_Loader_${{ matrix.platform }}.zip
|
||||||
Reference in New Issue
Block a user