From 46b56852b88a08d4773c6394cbf38dd4163177f5 Mon Sep 17 00:00:00 2001 From: oiupoyt Date: Thu, 3 Sep 2026 20:12:05 +0530 Subject: [PATCH] ci: Isolate MSYS2 environment with path-type minimal and allow partial release publication --- .github/workflows/release.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7c5a0e4..4bf743f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -108,20 +108,17 @@ jobs: with: msystem: MINGW64 update: true + path-type: minimal install: >- mingw-w64-x86_64-toolchain mingw-w64-x86_64-rust mingw-w64-x86_64-gtk3 mingw-w64-x86_64-ffmpeg mingw-w64-x86_64-pkg-config - mingw-w64-x86_64-clang - name: Build Release Binaries (Windows) shell: msys2 {0} run: | - GCC_INC="$(gcc -print-file-name=include)" - export LIBCLANG_PATH="/mingw64/bin" - export BINDGEN_EXTRA_CLANG_ARGS="-I${GCC_INC} -I/mingw64/include" cargo build --release - name: Package Windows Zip @@ -141,7 +138,7 @@ jobs: publish-release: name: Publish GitHub Release needs: [build-linux, build-windows] - if: startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' + if: always() && !cancelled() && (needs.build-linux.result == 'success' || needs.build-windows.result == 'success') runs-on: ubuntu-latest steps: - name: Checkout repository @@ -149,6 +146,7 @@ jobs: - name: Download all built artifacts uses: actions/download-artifact@v4 + continue-on-error: true with: path: artifacts