mirror of
https://github.com/gbdev/rgbds.git
synced 2026-06-15 13:12:11 +00:00
Use Windows git for checkout's post-job cleanup, not Cygwin's git (#1953)
This fixes an error from using Cygwin's git in checkout's post-job cleanup
This commit is contained in:
@@ -332,6 +332,10 @@ jobs:
|
|||||||
run:
|
run:
|
||||||
shell: C:\cygwin\bin\env.exe CYGWIN_NOWINPATH=1 CHERE_INVOKING=1 C:\cygwin\bin\bash.exe -o igncr '{0}'
|
shell: C:\cygwin\bin\env.exe CYGWIN_NOWINPATH=1 CHERE_INVOKING=1 C:\cygwin\bin\bash.exe -o igncr '{0}'
|
||||||
steps:
|
steps:
|
||||||
|
- name: Save Windows git location for the PATH
|
||||||
|
shell: pwsh
|
||||||
|
run: | # The `cygwin/cygwin-install-action` step will override the PATH with Cygwin's binaries
|
||||||
|
"ORIGINAL_GIT_DIR=$(Split-Path (Get-Command git).Source)" >> $env:GITHUB_ENV
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
- name: Setup Cygwin
|
- name: Setup Cygwin
|
||||||
@@ -352,6 +356,10 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
test/run-tests.sh --only-internal
|
test/run-tests.sh --only-internal
|
||||||
|
- name: Use Windows git location in the PATH
|
||||||
|
shell: pwsh
|
||||||
|
run: | # Prevents the `actions/checkout` post-job cleanup from using Cygwin's git binary
|
||||||
|
"$env:ORIGINAL_GIT_DIR" >> $env:GITHUB_PATH
|
||||||
|
|
||||||
freebsd:
|
freebsd:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user