From 926e4dce287e984fe5773718a6783cdc1baa0958 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Tue, 14 May 2024 21:59:44 +0200 Subject: [PATCH 1/2] ci: autobuild pal and jpn and include them in release --- .github/workflows/c-cpp.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 5e1566fe2..a01a2b06d 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -29,10 +29,16 @@ jobs: uses: actions/checkout@v4 - name: Build pd.exe run: make -f Makefile.port -j + - name: Build pd.pal.exe + run: make -f Makefile.port -j ROMID=pal-final + - name: Build pd.jpn.exe + run: make -f Makefile.port -j ROMID=jpn-final - name: Prepare artifact for packaging run: | mkdir -p bin/data cp build/ntsc-final-port/pd.exe bin/ + cp build/pal-final-port/pd.pal.exe bin/ + cp build/jpn-final-port/pd.jpn.exe bin/ cp /mingw32/bin/{SDL2.dll,zlib1.dll,libgcc_s_dw2-1.dll,libwinpthread-1.dll} bin/ touch bin/data/put_your_rom_here.txt - name: Upload artifact @@ -54,10 +60,16 @@ jobs: uses: actions/checkout@v4 - name: Build pd.exe run: make -f Makefile.port TARGET_PLATFORM=i686-linux -j2 + - name: Build pd.pal.exe + run: make -f Makefile.port TARGET_PLATFORM=i686-linux -j2 ROMID=pal-final + - name: Build pd.jpn.exe + run: make -f Makefile.port TARGET_PLATFORM=i686-linux -j2 ROMID=jpn-final - name: Prepare artifact for packaging run: | mkdir -p bin/data cp build/ntsc-final-port/pd.exe bin/pd + cp build/pal-final-port/pd.exe bin/pd.pal + cp build/jpn-final-port/pd.exe bin/pd.jpn touch bin/data/put_your_rom_here.txt - name: Upload artifact uses: actions/upload-artifact@v4 From 45ec35172de0e77cdef488a29a4aff272afd8d65 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Tue, 14 May 2024 22:04:27 +0200 Subject: [PATCH 2/2] ci: fix executable names on linux --- .github/workflows/c-cpp.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index a01a2b06d..3515c9d3b 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -68,8 +68,8 @@ jobs: run: | mkdir -p bin/data cp build/ntsc-final-port/pd.exe bin/pd - cp build/pal-final-port/pd.exe bin/pd.pal - cp build/jpn-final-port/pd.exe bin/pd.jpn + cp build/pal-final-port/pd.pal.exe bin/pd.pal + cp build/jpn-final-port/pd.jpn.exe bin/pd.jpn touch bin/data/put_your_rom_here.txt - name: Upload artifact uses: actions/upload-artifact@v4