forked from zwenergy/gbaHD
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add action to build BlueRetro spiffs partition with pre-installed bit…
…stream
- Loading branch information
1 parent
64b4428
commit 7831268
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: blueretro | ||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
list-bitstream: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
matrix: ${{ steps.set-matrix.outputs.matrix }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- id: set-matrix | ||
run: echo "matrix=$(basename -a bitstream/*.bit | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT | ||
spiffsgen: | ||
needs: list-bitstream | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
bitstream: ${{ fromJson(needs.list-bitstream.outputs.matrix) }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Package bitstream | ||
run: | | ||
curl https://raw.githubusercontent.com/espressif/esp-idf/master/components/spiffs/spiffsgen.py -o ./spiffsgen.py | ||
mkdir spiffs | ||
cp bitstream/${{ matrix.bitstream}} spiffs/bitstream.bit | ||
python spiffsgen.py 0xF0000 spiffs/ ${{ matrix.bitstream}}_blueretro.bin | ||
shell: bash | ||
- name: Upload artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ matrix.bitstream}}_blueretro | ||
path: ${{ matrix.bitstream}}_blueretro.bin | ||
if-no-files-found: error |