From 3d85d1567148acc56e2add1be4d3ef0ca8e288cd Mon Sep 17 00:00:00 2001 From: binarybaron Date: Thu, 18 Sep 2025 19:12:50 -0400 Subject: [PATCH] fix(ci): add custom gcc to path in its own github action step --- .github/actions/setup-build-environment/action.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-build-environment/action.yml b/.github/actions/setup-build-environment/action.yml index f3e889ba..e45bc064 100644 --- a/.github/actions/setup-build-environment/action.yml +++ b/.github/actions/setup-build-environment/action.yml @@ -120,7 +120,13 @@ runs: set -euxo pipefail just prepare-windows-build - # The script should set MINGW_TOOLCHAIN_DIR to the /bin directory of the toolchain + - name: Prepare Windows build by adding gcc to PATH + if: contains(inputs.target, 'windows') + shell: bash + run: | + set -euxo pipefail + + # The step above should set MINGW_TOOLCHAIN_DIR to the /bin directory of the toolchain if [ -z "${MINGW_TOOLCHAIN_DIR:-}" ]; then echo "ERROR: MINGW_TOOLCHAIN_DIR was not set by the build script." >&2 exit 1