Skip to content

Commit d401662

Browse files
committed
Also extend the PATH to /mingw64/bin (or /mingw32/bin)
The `bash` scriptlets are executed by GitHub Actions via this command: <path-to>\bash.EXE --noprofile --norc -e -o pipefail {0} This means that `/etc/profile` is not executed, therefore we cannot rely on it to set the `PATH` correctly. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 37a0d6e commit d401662

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

main.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@ async function run(): Promise<void> {
5454

5555
// Set up PATH so that Git for Windows' SDK's `bash.exe` is found
5656
core.addPath(`${outputDirectory}/usr/bin`)
57-
core.exportVariable(
58-
'MSYSTEM',
59-
architecture === 'i686' ? 'MING32' : 'MINGW64'
60-
)
57+
const msystem = architecture === 'i686' ? 'MING32' : 'MINGW64'
58+
core.addPath(`${outputDirectory}/${msystem.toLocaleLowerCase()}/bin`)
59+
core.exportVariable('MSYSTEM', msystem)
6160
} catch (error) {
6261
core.setFailed(error.message)
6362
}

0 commit comments

Comments
 (0)