From 809fab8a14876212683c47ffdef8914759fd7ee4 Mon Sep 17 00:00:00 2001 From: Jacques Gagnon Date: Sat, 14 Sep 2024 01:42:47 +0000 Subject: [PATCH] [ACTIONS] Rework workflows for idiotic upload v4 --- .github/workflows/build.yml | 21 ++++++++++++--------- configs/hw1/common | 2 ++ configs/hw2/common | 1 + 3 files changed, 15 insertions(+), 9 deletions(-) create mode 100644 configs/hw1/common create mode 100644 configs/hw2/common diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1140bcfb..2a937dd3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,7 +12,7 @@ jobs: matrix: hw_version: [hw1, hw2] br_config: - [3do, cdi, dreamcast, gamecube, gbahd, genesis, jaguar, jvs_arcade, n64, nes, + [common, 3do, cdi, dreamcast, gamecube, gbahd, genesis, jaguar, jvs_arcade, n64, nes, parallel_1p, parallel_1p_3v3, parallel_2p, parallel_2p_3v3, pc_engine, pcfx, playstation, saturn, snes, universal, virtualboy, wii_extension] include: @@ -43,18 +43,21 @@ jobs: cat version.txt cp configs/${{ matrix.hw_version }}/${{ matrix.br_config }} sdkconfig BR_HW=_${{ matrix.hw_version }} BR_SYS=_${{ matrix.br_config }} idf.py reconfigure build - - name: Copy OTA initial binary + - name: Move common files working-directory: ./build + if: ${{ matrix.br_config == 'common' }} run: | - mkdir ota - mv ota_data_initial.bin ota/ + mkdir common + mv bootloader/bootloader.bin common/ + mv partition-table/partition-table.bin common/ + mv ota_data_initial.bin common/ - name: Upload artifact - uses: darthcloud/upload-artifact@v4 + uses: actions/upload-artifact@v4 with: name: ${{ env.br_version }}_${{ matrix.hw_version }} path: | - build/partition_table/partition-table.bin - build/bootloader/bootloader.bin - build/ota/ota_data_initial.bin - build/BlueRetro*.bin + ${{ matrix.br_config }}/partition-table.bin + ${{ matrix.br_config }}/bootloader.bin + ${{ matrix.br_config }}/ota_data_initial.bin + build/BlueRetro_${{ matrix.hw_version }}_${{ matrix.br_config }}.bin if-no-files-found: error diff --git a/configs/hw1/common b/configs/hw1/common new file mode 100644 index 00000000..3f5628e3 --- /dev/null +++ b/configs/hw1/common @@ -0,0 +1,2 @@ +CONFIG_BLUERETRO_HW2=n +CONFIG_BLUERETRO_SYSTEM_PARALLEL_1P=y \ No newline at end of file diff --git a/configs/hw2/common b/configs/hw2/common new file mode 100644 index 00000000..f5176849 --- /dev/null +++ b/configs/hw2/common @@ -0,0 +1 @@ +CONFIG_BLUERETRO_SYSTEM_PARALLEL_1P=y \ No newline at end of file