diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index b59b17e..e6ef147 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -81,10 +81,12 @@ jobs: cp -r share "$stage_lin/" tar czf dist/crafter-build-linux-x86_64.tar.gz -C "$stage_lin" . - # Windows: bin/ contents (exe + auto-bundled mingw DLLs) and share/ + # Windows: bin/ contents (exe + auto-bundled mingw DLLs) and share/. + # The output dir is named by march, which matches the env var, not + # the literal "native" — keep these in sync. stage_win=$(mktemp -d) mkdir -p "$stage_win/bin" - cp bin/crafter.build-exe-x86_64-w64-mingw32-native/* "$stage_win/bin/" + cp "bin/crafter.build-exe-x86_64-w64-mingw32-${CRAFTER_BUILD_MARCH}"/* "$stage_win/bin/" cp -r share "$stage_win/" (cd "$stage_win" && zip -r "$GITHUB_WORKSPACE/dist/crafter-build-windows-x86_64.zip" .)