From c2e78c68c657907640632a7d74f6a96bf7f07d9f Mon Sep 17 00:00:00 2001 From: Marty <85036874+MatusGuy@users.noreply.github.com> Date: Sat, 28 Sep 2024 23:35:25 +0100 Subject: [PATCH] Prevent debug build from uploading. If you'd like to get a stacktrace, there's a built in stacktrace viewer you can use, or you can compile the source code --- .github/workflows/gnulinux.yml | 3 ++- .github/workflows/macos.yml | 1 + .github/workflows/ubuntu-touch.yml | 1 + .github/workflows/wasm.yml | 1 + .github/workflows/windows.yml | 2 ++ 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gnulinux.yml b/.github/workflows/gnulinux.yml index ddf1eb65afc..6c7d2c7b333 100644 --- a/.github/workflows/gnulinux.yml +++ b/.github/workflows/gnulinux.yml @@ -212,7 +212,7 @@ jobs: doxygen docs/Doxyfile - name: Package - if: ${{ matrix.arch != '32' }} + if: matrix.arch != '32' env: OS_NAME: ${{ matrix.os }} ARCH: ${{ matrix.arch }} # TODO: Working Linux 32-bit packaging @@ -224,6 +224,7 @@ jobs: run: ../.ci_scripts/package.sh - name: Upload AppImage + if: matrix.build_type != 'Debug' && matrix.glbinding == 'OFF' uses: actions/upload-artifact@v4 with: name: "${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.compiler }}-${{ matrix.build_type }}${{ matrix.glbinding == 'ON' && '-glbinding' || '' }}-appimage" diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 4e8cab09ed5..59d3402ac3b 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -116,6 +116,7 @@ jobs: run: ../.ci_scripts/package.sh - uses: actions/upload-artifact@v4 + if: matrix.build_type != 'Debug' && matrix.glbinding == 'OFF' with: name: "${{ matrix.os }}-${{ matrix.build_type }}${{ matrix.glbinding == 'ON' && '-glbinding' || '' }}-dmg" path: build/upload/*.dmg diff --git a/.github/workflows/ubuntu-touch.yml b/.github/workflows/ubuntu-touch.yml index e85ee4f9781..f442de00677 100644 --- a/.github/workflows/ubuntu-touch.yml +++ b/.github/workflows/ubuntu-touch.yml @@ -88,6 +88,7 @@ jobs: ~/.local/bin/clickable build --verbose ${BUILD_TYPE} --arch ${ARCH} - uses: actions/upload-artifact@v4 + if: matrix.build_type != 'Debug' with: name: "clickable-${{ matrix.arch }}-${{ matrix.build_type }}-${{ matrix.opengl }}-click" path: build.clickable/*.click diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index 0376ea86100..5f51cce5aab 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -85,6 +85,7 @@ jobs: mv supertux2* upload/ - uses: actions/upload-artifact@v4 + if: matrix.build_type != 'Debug' with: name: "wasm32-emscripten-${{ matrix.build_type }}-html" path: build/upload/* diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 6ecb33548ae..fa44fa4f70f 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -105,6 +105,7 @@ jobs: "./$Env:BUILD_TYPE/run_tests.exe" - name: Package MSI Installer + if: matrix.build_type != 'Debug' && matrix.glbinding == 'OFF' shell: pwsh working-directory: build env: @@ -148,6 +149,7 @@ jobs: #> - name: Upload Portable Package + if: matrix.build_type != 'Debug' && matrix.glbinding == 'OFF' uses: actions/upload-artifact@v4 with: name: "windows-${{ matrix.arch }}-${{ matrix.build_type }}${{ matrix.glbinding == 'ON' && '-glbinding' || '' }}-portable"