From 375ba9058961129344a8b0048772e63f2dca614f Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Tue, 16 Sep 2025 17:44:15 +1000 Subject: [PATCH] Really really fix workflows --- .github/workflows/build_3ds.yml | 14 ++++++------- .github/workflows/build_android.yml | 14 ++++++------- .github/workflows/build_dreamcast.yml | 14 ++++++------- .github/workflows/build_freebsd.yml | 14 ++++++------- .github/workflows/build_haiku.yml | 13 ++++++------ .github/workflows/build_ios.yml | 13 ++++++------ .github/workflows/build_linux.yml | 28 +++++++++++++------------- .github/workflows/build_mac32.yml | 13 ++++++------ .github/workflows/build_mac64.yml | 13 ++++++------ .github/workflows/build_macclassic.yml | 14 ++++++------- .github/workflows/build_msdos.yml | 14 ++++++------- .github/workflows/build_n64.yml | 14 ++++++------- .github/workflows/build_nds.yml | 14 ++++++------- .github/workflows/build_netbsd.yml | 14 ++++++------- .github/workflows/build_ps1.yml | 14 ++++++------- .github/workflows/build_ps2.yml | 14 ++++++------- .github/workflows/build_ps3.yml | 14 ++++++------- .github/workflows/build_psp.yml | 14 ++++++------- .github/workflows/build_rpi.yml | 28 +++++++++++++------------- .github/workflows/build_saturn.yml | 15 +++++++------- .github/workflows/build_switch.yml | 14 ++++++------- .github/workflows/build_symbian.yml | 13 ++++++------ .github/workflows/build_vita.yml | 14 ++++++------- .github/workflows/build_webclient.yml | 13 ++++++------ .github/workflows/build_wiigc.yml | 14 ++++++------- .github/workflows/build_wiiu.yml | 14 ++++++------- .github/workflows/build_win-arm.yml | 24 ++++++++++++++-------- .github/workflows/build_windows.yml | 28 +++++++++++++------------- .github/workflows/build_xbox.yml | 14 ++++++------- .github/workflows/build_xbox360.yml | 13 ++++++------ .github/workflows/release.yml | 15 +++++++------- 31 files changed, 249 insertions(+), 232 deletions(-) diff --git a/.github/workflows/build_3ds.yml b/.github/workflows/build_3ds.yml index b2591c27d..7b2ff2d8a 100644 --- a/.github/workflows/build_3ds.yml +++ b/.github/workflows/build_3ds.yml @@ -24,13 +24,6 @@ jobs: run: | make 3ds - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce 3DS build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} @@ -56,3 +49,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: '3ds' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce 3DS build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_android.yml b/.github/workflows/build_android.yml index 1e5da610b..87f63fcf3 100644 --- a/.github/workflows/build_android.yml +++ b/.github/workflows/build_android.yml @@ -99,13 +99,6 @@ jobs: # jarsigner -verbose # create aligned .apk file #$TOOLS_ROOT/zipalign -f 4 cc-signed.apk $ROOT_DIR/src/cc.apk - - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce android build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build @@ -120,3 +113,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'android' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce android build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_dreamcast.yml b/.github/workflows/build_dreamcast.yml index 8866fd570..39a2439e1 100644 --- a/.github/workflows/build_dreamcast.yml +++ b/.github/workflows/build_dreamcast.yml @@ -34,13 +34,6 @@ jobs: export PATH=/opt/toolchains/dc/kos/utils/:$PATH make dreamcast - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce Dreamcast build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} @@ -66,3 +59,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'dreamcast' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce Dreamcast build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_freebsd.yml b/.github/workflows/build_freebsd.yml index 096686248..a34f44c39 100644 --- a/.github/workflows/build_freebsd.yml +++ b/.github/workflows/build_freebsd.yml @@ -52,13 +52,6 @@ jobs: i386-freebsd11-clang ${{ env.SRCS }} ${{ env.FLAGS }} ${{ env.PLAT32_FLAGS }} $LATEST_FLAG -o cc-fbsd32-gl1 ${{ env.LIBS }} x86_64-freebsd11-clang ${{ env.SRCS }} ${{ env.FLAGS }} ${{ env.PLAT64_FLAGS }} $LATEST_FLAG -o cc-fbsd64-gl1 ${{ env.LIBS }} - - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce FreeBSD build(s)' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build @@ -79,3 +72,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'freebsd' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce FreeBSD build(s)' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_haiku.yml b/.github/workflows/build_haiku.yml index cafb60c59..950c879ca 100644 --- a/.github/workflows/build_haiku.yml +++ b/.github/workflows/build_haiku.yml @@ -28,12 +28,6 @@ jobs: COMMON_FLAGS: "-O1 -s -fno-stack-protector -fno-math-errno -Qn -Werror" run: | x86_64-unknown-haiku-gcc ${{ env.SRCS }} -o ClassiCube-haiku ${{ env.COMMON_FLAGS }} ${{ env.LIBS }} - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce Haiku build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build @@ -48,3 +42,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'haiku' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce Haiku build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_ios.yml b/.github/workflows/build_ios.yml index 141b941da..b88d2ce13 100644 --- a/.github/workflows/build_ios.yml +++ b/.github/workflows/build_ios.yml @@ -27,12 +27,6 @@ jobs: mkdir Payload mv ClassiCube.app Payload/ClassiCube.app zip -r cc.ipa Payload - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce iOS build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} @@ -46,3 +40,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'ios' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce iOS build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_linux.yml b/.github/workflows/build_linux.yml index 387749370..e053d556f 100644 --- a/.github/workflows/build_linux.yml +++ b/.github/workflows/build_linux.yml @@ -50,13 +50,6 @@ jobs: gcc ${{ env.SRCS }} ${{ env.FLAGS }} ${{ env.NIX32_FLAGS }} $LATEST_FLAG -o cc-nix32-gl1 ${{ env.LIBS }} gcc ${{ env.SRCS }} ${{ env.FLAGS }} ${{ env.NIX32_FLAGS }} $LATEST_FLAG -DCC_GFX_BACKEND=CC_GFX_BACKEND_GL2 -o cc-nix32-gl2 ${{ env.LIBS }} - - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce 32 bit Linux build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build @@ -78,6 +71,13 @@ jobs: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'linux32' + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce 32 bit Linux build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' + #============================================ # =============== 64 BIT LINUX ============== # =========================================== @@ -115,13 +115,6 @@ jobs: gcc ${{ env.SRCS }} ${{ env.FLAGS }} ${{ env.NIX64_FLAGS }} $LATEST_FLAG -o cc-nix64-gl1 ${{ env.LIBS }} gcc ${{ env.SRCS }} ${{ env.FLAGS }} ${{ env.NIX64_FLAGS }} $LATEST_FLAG -DCC_GFX_BACKEND=CC_GFX_BACKEND_GL2 -o cc-nix64-gl2 ${{ env.LIBS }} #gcc ${{ env.SRCS }} ${{ env.FLAGS }} ${{ env.NIX64_FLAGS }} $LATEST_FLAG -DCC_GFX_BACKEND=CC_GFX_BACKEND_GL2 -DCC_WIN_BACKEND=CC_WIN_BACKEND_SDL2 -o cc-sdl64-gl2 -lSDL2 ${{ env.LIBS }} - - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce 64 bit Linux build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build @@ -148,3 +141,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'linux64' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce 64 bit Linux build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_mac32.yml b/.github/workflows/build_mac32.yml index d233186c7..0d769852a 100644 --- a/.github/workflows/build_mac32.yml +++ b/.github/workflows/build_mac32.yml @@ -58,12 +58,6 @@ jobs: run: | PATH=$PATH:/usr/local/compiler/target/bin i386-apple-darwin8-lipo -create -output cc-mac32-universal cc-mac32-gl1 cc-mac32-ppc - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce 32 bit macOS build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build @@ -96,3 +90,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'mac32' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce 32 bit macOS build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_mac64.yml b/.github/workflows/build_mac64.yml index f308ea1f1..91bb8954e 100644 --- a/.github/workflows/build_mac64.yml +++ b/.github/workflows/build_mac64.yml @@ -36,12 +36,6 @@ jobs: clang ${{ env.SRCS }} ${{ env.COMMON_FLAGS }} ${{ env.ARM64_FLAGS }} $LATEST_FLAG -o cc-mac-arm64 ${{ env.LIBS }} # https://wiki.freepascal.org/Code_Signing_for_macOS#Ad_hoc_signing - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce 64 bit macOS builds' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build @@ -68,3 +62,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'mac64' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce 64 bit macOS builds' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_macclassic.yml b/.github/workflows/build_macclassic.yml index 59fb5d703..6b8656efc 100644 --- a/.github/workflows/build_macclassic.yml +++ b/.github/workflows/build_macclassic.yml @@ -27,13 +27,6 @@ jobs: make macclassic_68k RETRO68=/Retro68-build/toolchain ARCH_68040=1 - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce Mac Classic build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - - - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} with: @@ -58,3 +51,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'macclassic' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce Mac Classic build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_msdos.yml b/.github/workflows/build_msdos.yml index 11eb37749..55c72b565 100644 --- a/.github/workflows/build_msdos.yml +++ b/.github/workflows/build_msdos.yml @@ -30,13 +30,6 @@ jobs: make CC=gcc dos - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce MS DOS build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - - - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} with: @@ -49,3 +42,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'msdos' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce MS DOS build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_n64.yml b/.github/workflows/build_n64.yml index c155ae6ea..e13f8b794 100644 --- a/.github/workflows/build_n64.yml +++ b/.github/workflows/build_n64.yml @@ -35,13 +35,6 @@ jobs: make tools-install cd $REAL_DIR make n64 - - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce N64 build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build @@ -62,3 +55,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'n64' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce N64 build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_nds.yml b/.github/workflows/build_nds.yml index 10e6a0e0f..00830a6e1 100644 --- a/.github/workflows/build_nds.yml +++ b/.github/workflows/build_nds.yml @@ -30,13 +30,6 @@ jobs: make ds export BUILD_DSI=1 make ds - - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce NDS build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build @@ -69,3 +62,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'nds' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce NDS build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_netbsd.yml b/.github/workflows/build_netbsd.yml index fbc1e74a8..786301cc4 100644 --- a/.github/workflows/build_netbsd.yml +++ b/.github/workflows/build_netbsd.yml @@ -43,13 +43,6 @@ jobs: LATEST_FLAG=-DCC_COMMIT_SHA=\"${GITHUB_SHA::9}\" x86_64-unknown-netbsd-gcc ${{ env.SRCS }} ${{ env.FLAGS }} ${{ env.PLAT64_FLAGS }} $LATEST_FLAG -o cc-netbsd64-gl1 ${{ env.LIBS }} - - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce NetBSD build(s)' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build @@ -64,3 +57,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'netbsd' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce NetBSD build(s)' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_ps1.yml b/.github/workflows/build_ps1.yml index 54615fccc..ae2306c96 100644 --- a/.github/workflows/build_ps1.yml +++ b/.github/workflows/build_ps1.yml @@ -31,13 +31,6 @@ jobs: make ps1 - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce PS1 build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - - - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} with: @@ -68,3 +61,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'ps1' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce PS1 build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_ps2.yml b/.github/workflows/build_ps2.yml index 3b8b929bf..d2d1c670d 100644 --- a/.github/workflows/build_ps2.yml +++ b/.github/workflows/build_ps2.yml @@ -28,13 +28,6 @@ jobs: run: | make ps2 - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce PS2 build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} @@ -54,3 +47,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'ps2' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce PS2 build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_ps3.yml b/.github/workflows/build_ps3.yml index be632a939..84f8adfd7 100644 --- a/.github/workflows/build_ps3.yml +++ b/.github/workflows/build_ps3.yml @@ -34,13 +34,6 @@ jobs: make ps3 - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce PS3 build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - - - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} with: @@ -65,3 +58,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'ps3' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce PS3 build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_psp.yml b/.github/workflows/build_psp.yml index 939131ddc..2488824f1 100644 --- a/.github/workflows/build_psp.yml +++ b/.github/workflows/build_psp.yml @@ -28,13 +28,6 @@ jobs: run: | make psp - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce PSP build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} @@ -54,3 +47,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'psp' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce PSP build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_rpi.yml b/.github/workflows/build_rpi.yml index e19fe297c..2bfcd84f8 100644 --- a/.github/workflows/build_rpi.yml +++ b/.github/workflows/build_rpi.yml @@ -41,13 +41,6 @@ jobs: LATEST_FLAG=-DCC_COMMIT_SHA=\"$GITHUB_SHA\" $CC ${{ env.SRCS }} ${{ env.FLAGS }} ${{ env.RPI32_FLAGS }} $LATEST_FLAG -o cc-rpi32 ${{ env.LIBS }} - - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce RPI 32 bit build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build @@ -64,6 +57,13 @@ jobs: WORKFLOW_NAME: 'rpi32' + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce RPI 32 bit build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' + + #============================================ # ================ 64 BIT RPI =============== # =========================================== @@ -93,13 +93,6 @@ jobs: LATEST_FLAG=-DCC_COMMIT_SHA=\"$GITHUB_SHA\" $CC ${{ env.SRCS }} ${{ env.FLAGS }} ${{ env.RPI64_FLAGS }} $LATEST_FLAG -o cc-rpi64 ${{ env.LIBS }} - - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce RPI 64 bit build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build @@ -114,3 +107,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'rpi64' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce RPI 64 bit build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_saturn.yml b/.github/workflows/build_saturn.yml index f503a52c0..7ea0af117 100644 --- a/.github/workflows/build_saturn.yml +++ b/.github/workflows/build_saturn.yml @@ -21,19 +21,13 @@ jobs: - uses: actions/checkout@v4 - name: Install prerequisites run: | - apt-get update + apt-get --allow-releaseinfo-change update apt-get install -y curl - name: Compile Saturn build id: compile run: | make saturn - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce Saturn build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build @@ -60,3 +54,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'saturn' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce Saturn build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_switch.yml b/.github/workflows/build_switch.yml index a3a5c9322..510c45f51 100644 --- a/.github/workflows/build_switch.yml +++ b/.github/workflows/build_switch.yml @@ -24,13 +24,6 @@ jobs: run: | make switch - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce Switch build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} @@ -50,3 +43,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'switch' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce Switch build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_symbian.yml b/.github/workflows/build_symbian.yml index ab83c1c37..b9eacf77a 100644 --- a/.github/workflows/build_symbian.yml +++ b/.github/workflows/build_symbian.yml @@ -42,15 +42,16 @@ jobs: SOURCE_FILE: 'misc/symbian/ClassiCube.sis' DEST_NAME: 'ClassiCube-Symbian.sis' - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce Symbian build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - - uses: ./.github/actions/notify_success if: ${{ always() && steps.compile.outcome == 'success' }} with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'symbian' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce Symbian build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_vita.yml b/.github/workflows/build_vita.yml index 14b192904..6c9ccc6b4 100644 --- a/.github/workflows/build_vita.yml +++ b/.github/workflows/build_vita.yml @@ -24,13 +24,6 @@ jobs: run: | make vita - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce Vita build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} @@ -50,3 +43,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'vita' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce Vita build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_webclient.yml b/.github/workflows/build_webclient.yml index a80e999e5..60ea87dc5 100644 --- a/.github/workflows/build_webclient.yml +++ b/.github/workflows/build_webclient.yml @@ -26,12 +26,6 @@ jobs: run: | emcc ${{ env.SRCS }} -o ClassiCube.js -s WASM=0 -s NO_EXIT_RUNTIME=1 -s LEGACY_VM_SUPPORT=1 -s ALLOW_MEMORY_GROWTH=1 -s ABORTING_MALLOC=0 -s ENVIRONMENT=web -s TOTAL_STACK=256Kb --js-library src/webclient/interop_web.js -Os -g2 -s SINGLE_FILE sed -i 's#eventHandler.useCapture);#{ useCapture: eventHandler.useCapture, passive: false });#g' ClassiCube.js - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce Webclient' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} @@ -45,3 +39,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'webclient' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce Webclient' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_wiigc.yml b/.github/workflows/build_wiigc.yml index d161b77c6..e65ff0d05 100644 --- a/.github/workflows/build_wiigc.yml +++ b/.github/workflows/build_wiigc.yml @@ -31,13 +31,6 @@ jobs: cp ClassiCube-wii.dol wiitest/apps/ClassiCube/boot.dol cp misc/wii/icon.png wiitest/apps/ClassiCube/icon.png cp misc/wii/meta.xml wiitest/apps/ClassiCube/meta.xml - - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce Wii/Gamecube build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build @@ -76,3 +69,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'wiigc' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce Wii/Gamecube build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_wiiu.yml b/.github/workflows/build_wiiu.yml index d56842c65..5b219a359 100644 --- a/.github/workflows/build_wiiu.yml +++ b/.github/workflows/build_wiiu.yml @@ -23,13 +23,6 @@ jobs: id: compile run: | make wiiu - - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce WiiU build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build @@ -56,3 +49,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'wiiu' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce WiiU build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_win-arm.yml b/.github/workflows/build_win-arm.yml index 67aaf75d6..648c3ff08 100644 --- a/.github/workflows/build_win-arm.yml +++ b/.github/workflows/build_win-arm.yml @@ -35,18 +35,18 @@ jobs: armv7-w64-mingw32-gcc ${{ env.SRCS }} ${{ env.COMMON_FLAGS }} ${{ env.WIN32_FLAGS }} -o cc-arm32-d3d11.exe $LATEST_FLAG ${{ env.LIBS }} - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce 32 bit Windows build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} with: SOURCE_FILE: 'cc-arm32-d3d11.exe' DEST_NAME: 'ClassiCube-arm32-Direct3D11.exe' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce 32 bit Windows-ARM build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' #============================================ # ============== ARM64 WINDOWS ============== # =========================================== @@ -77,8 +77,16 @@ jobs: NOTIFY_MESSAGE: 'Failed to produce 64 bit Windows build' WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' + - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} with: SOURCE_FILE: 'cc-arm64-d3d11.exe' - DEST_NAME: 'ClassiCube-arm64-Direct3D11.exe' + DEST_NAME: 'ClassiCube-arm64-Direct3D11.exe' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce 64 bit Windows-ARM build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_windows.yml b/.github/workflows/build_windows.yml index f84df3112..6b7d23825 100644 --- a/.github/workflows/build_windows.yml +++ b/.github/workflows/build_windows.yml @@ -46,13 +46,6 @@ jobs: # mingw defaults to i686, but some really old CPUs only support i586 i686-w64-mingw32-gcc ${{ env.SRCS }} ${{ env.COMMON_FLAGS }} ${{ env.WIN32_FLAGS }} -march=i586 -o cc-w9x-ogl.exe $LATEST_FLAG -DCC_GFX_BACKEND=CC_GFX_BACKEND_GL1 -DCC_BUILD_NOSTDLIB ${{ env.LIBS }} - - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce 32 bit Windows build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build @@ -85,6 +78,13 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'win32' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce 32 bit Windows build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' #============================================ @@ -118,13 +118,6 @@ jobs: x86_64-w64-mingw32-gcc ${{ env.SRCS }} ${{ env.COMMON_FLAGS }} ${{ env.WIN64_FLAGS }} -o cc-w64-d3d11.exe $LATEST_FLAG -DCC_GFX_BACKEND=CC_GFX_BACKEND_D3D11 ${{ env.LIBS }} - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce 64 bit Windows build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - - - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} with: @@ -149,3 +142,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'win64' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce 64 bit Windows build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_xbox.yml b/.github/workflows/build_xbox.yml index 67f341011..4bec2f29f 100644 --- a/.github/workflows/build_xbox.yml +++ b/.github/workflows/build_xbox.yml @@ -29,13 +29,6 @@ jobs: eval $(/usr/src/nxdk/bin/activate -s) make xbox - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce Xbox build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - - uses: ./.github/actions/upload_build if: ${{ always() && steps.compile.outcome == 'success' }} @@ -55,3 +48,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'xbox' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce Xbox build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/build_xbox360.yml b/.github/workflows/build_xbox360.yml index 6d6a573bf..8bae230c4 100644 --- a/.github/workflows/build_xbox360.yml +++ b/.github/workflows/build_xbox360.yml @@ -31,12 +31,6 @@ jobs: export DEVKITXENON=/usr/local/xenon export PATH=$PATH:$DEVKITXENON/bin:$DEVKITXENON/usr/bin make xbox360 - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce Xbox 360 build' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' - uses: ./.github/actions/upload_build @@ -57,3 +51,10 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'xbox360' + + + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce Xbox 360 build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 63f43a4a6..121f0855b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -113,13 +113,6 @@ jobs: make_unix_tar cc-linux32.tar.gz cc-linux-32 make_unix_tar cc-linux64.tar.gz cc-linux-64 - - - - uses: ./.github/actions/notify_failure - if: failure() - with: - NOTIFY_MESSAGE: 'Failed to produce release' - WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' # Generate Linux release files @@ -219,3 +212,11 @@ jobs: with: DESTINATION_URL: '${{ secrets.NOTIFY_URL }}' WORKFLOW_NAME: 'release' + + + # Log any failure + - uses: ./.github/actions/notify_failure + if: failure() + with: + NOTIFY_MESSAGE: 'Failed to produce release' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'