Skip to content

Commit 809fab8

Browse files
committed
[ACTIONS] Rework workflows for idiotic upload v4
1 parent aae7331 commit 809fab8

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
matrix:
1313
hw_version: [hw1, hw2]
1414
br_config:
15-
[3do, cdi, dreamcast, gamecube, gbahd, genesis, jaguar, jvs_arcade, n64, nes,
15+
[common, 3do, cdi, dreamcast, gamecube, gbahd, genesis, jaguar, jvs_arcade, n64, nes,
1616
parallel_1p, parallel_1p_3v3, parallel_2p, parallel_2p_3v3, pc_engine, pcfx,
1717
playstation, saturn, snes, universal, virtualboy, wii_extension]
1818
include:
@@ -43,18 +43,21 @@ jobs:
4343
cat version.txt
4444
cp configs/${{ matrix.hw_version }}/${{ matrix.br_config }} sdkconfig
4545
BR_HW=_${{ matrix.hw_version }} BR_SYS=_${{ matrix.br_config }} idf.py reconfigure build
46-
- name: Copy OTA initial binary
46+
- name: Move common files
4747
working-directory: ./build
48+
if: ${{ matrix.br_config == 'common' }}
4849
run: |
49-
mkdir ota
50-
mv ota_data_initial.bin ota/
50+
mkdir common
51+
mv bootloader/bootloader.bin common/
52+
mv partition-table/partition-table.bin common/
53+
mv ota_data_initial.bin common/
5154
- name: Upload artifact
52-
uses: darthcloud/upload-artifact@v4
55+
uses: actions/upload-artifact@v4
5356
with:
5457
name: ${{ env.br_version }}_${{ matrix.hw_version }}
5558
path: |
56-
build/partition_table/partition-table.bin
57-
build/bootloader/bootloader.bin
58-
build/ota/ota_data_initial.bin
59-
build/BlueRetro*.bin
59+
${{ matrix.br_config }}/partition-table.bin
60+
${{ matrix.br_config }}/bootloader.bin
61+
${{ matrix.br_config }}/ota_data_initial.bin
62+
build/BlueRetro_${{ matrix.hw_version }}_${{ matrix.br_config }}.bin
6063
if-no-files-found: error

configs/hw1/common

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
CONFIG_BLUERETRO_HW2=n
2+
CONFIG_BLUERETRO_SYSTEM_PARALLEL_1P=y

configs/hw2/common

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_BLUERETRO_SYSTEM_PARALLEL_1P=y

0 commit comments

Comments
 (0)