From 4edea377bf4802639e660dc4572c3b0230541cea Mon Sep 17 00:00:00 2001 From: Mike Solar Date: Sat, 22 Aug 2026 20:40:14 +0800 Subject: [PATCH] ci: cd into the workspace in every Windows msys2 step MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Gitea runner's msys2 shell does not start in the checkout directory, so "bash ./tooling/install-deps.sh" reported the file missing even though the checkout succeeded (the Linux steps were fine — only the custom msys2 shell has the wrong CWD). Every Windows step now begins with cd "$GITHUB_WORKSPACE" to make all relative file references resolve. --- .gitea/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 501e8b46d..bcd370a0a 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -197,6 +197,7 @@ jobs: # ------------------------------------------------------------------ - name: Install system dependencies run: | + cd "$GITHUB_WORKSPACE" bash ./tooling/install-deps.sh pacman -S --needed --noconfirm \ mingw-w64-ucrt-x86_64-cmake \ @@ -210,6 +211,7 @@ jobs: # Dynamic here — the CD packages the DLLs next to the binaries. - name: Configure build environment run: | + cd "$GITHUB_WORKSPACE" echo "OCIO_RS_ENABLE_REAL=1" >> "$GITHUB_ENV" echo "OCIO_INSTALL_DIR=/ucrt64" >> "$GITHUB_ENV" echo "OCIO_RS_LINK=dynamic" >> "$GITHUB_ENV" @@ -257,6 +259,7 @@ jobs: # ------------------------------------------------------------------ - name: Build project FFmpeg run: | + cd "$GITHUB_WORKSPACE" bash tooling/ffmpeg/build-ffmpeg.sh echo "FFMPEG_DIR=$(cygpath -m "$PWD/.cache/ffmpeg")" >> "$GITHUB_ENV" @@ -265,6 +268,7 @@ jobs: # ------------------------------------------------------------------ - name: Build run: | + cd "$GITHUB_WORKSPACE" # The runner's job hook injects the MSVC INCLUDE/LIB into every # step; clear them in-step (they poison the MinGW compiles with # MSVC SDK headers). @@ -279,6 +283,7 @@ jobs: - name: Test run: | + cd "$GITHUB_WORKSPACE" unset INCLUDE LIB # See Build (Windows): trailing -lmsvcrt for the mingw-w64 # _assert/__msvcrt_assert link-order breakage.