ci: Improve MinGW/MSYS Makefiles mingw.osdn.io job environments

Set `PATH`, `MSYSTEM`, and `MAKE_MODE` environment variables the way the
MinGW/MSYS 1.0 distribution from `mingw.osdn.io` does in its bash prompt.
This commit is contained in:
Brad King
2023-09-08 13:26:46 -04:00
parent 91585ad105
commit b2555f27ac
3 changed files with 7 additions and 8 deletions
@@ -1,3 +1 @@
$pwdpath = $pwd.Path
& "$pwsh" -File ".gitlab/ci/mingw.ps1"
Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\mingw\bin;$env:PATH"
. .gitlab/ci/mingw-env.ps1
@@ -1,5 +1 @@
$pwdpath = $pwd.Path
& "$pwsh" -File ".gitlab/ci/mingw.ps1"
Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\mingw\msys\1.0\bin;$pwdpath\.gitlab\mingw\bin;$env:PATH"
$env:MSYSTEM = 'MINGW32'
$env:MAKE_MODE = 'unix'
. .gitlab/ci/mingw-env.ps1
+5
View File
@@ -0,0 +1,5 @@
$pwdpath = $pwd.Path
& "$pwsh" -File ".gitlab/ci/mingw.ps1"
Set-Item -Force -Path "env:PATH" -Value "$pwdpath\.gitlab\mingw\bin;$pwdpath\.gitlab\mingw\msys\1.0\bin;$env:PATH"
$env:MSYSTEM = 'MINGW32'
$env:MAKE_MODE = 'unix'