mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-17 13:23:05 -05:00
git-artifacts: use a narrower PATH
GitHub workflows run in agents that have quite a bit of stuff in their `PATH`, e.g. Chocolatey. To make sure that those bits and pieces are _not_ used to build the artifacts, let's whittle down the `PATH` to contain the bare minimum. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
6
.github/workflows/git-artifacts.yml
vendored
6
.github/workflows/git-artifacts.yml
vendored
@@ -224,8 +224,10 @@ jobs:
|
||||
run: |
|
||||
& git-sdk-64-build-installers\usr\bin\sh.exe -lc @"
|
||||
set -x
|
||||
# Let `cv2pdb` find the DLLs
|
||||
PATH=\"`$PATH:/C/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin${{matrix.arch.bin}}\"
|
||||
|
||||
# Restrict `PATH` to MSYS2 and to Visual Studio (to let `cv2pdb` find the relevant DLLs)
|
||||
PATH=\"`/mingw64/bin:/usr/bin:/C/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin${{matrix.arch.bin}}:/C/Windows/system32\"
|
||||
|
||||
type -p mspdb140.dll || exit 1
|
||||
sh -x /usr/src/build-extra/please.sh build-mingw-w64-git --only-${{matrix.arch.bitness}}-bit --build-src-pkg -o artifacts HEAD &&
|
||||
cp bundle-artifacts/ver artifacts/ &&
|
||||
|
||||
Reference in New Issue
Block a user