Skip to content

Commit ac2a022

Browse files
committed
Set the Cygwin shell once as a default for its job
1 parent 1249c4e commit ac2a022

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/testing.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,9 @@ jobs:
323323
fail-fast: false
324324
runs-on: windows-2022
325325
timeout-minutes: 30
326+
defaults:
327+
run:
328+
shell: C:\cygwin\bin\env.exe CYGWIN_NOWINPATH=1 CHERE_INVOKING=1 C:\cygwin\bin\bash.exe -o igncr '{0}'
326329
steps:
327330
- name: Checkout repo
328331
uses: actions/checkout@v6
@@ -338,12 +341,10 @@ jobs:
338341
make
339342
pkg-config
340343
- name: Build & install using Make
341-
shell: C:\cygwin\bin\env.exe CYGWIN_NOWINPATH=1 CHERE_INVOKING=1 C:\cygwin\bin\bash.exe -o igncr '{0}'
342344
run: | # Cygwin does not support `make develop` sanitizers ASan or UBSan
343345
make -kj Q=
344346
make install -j Q=
345347
- name: Run tests
346-
shell: C:\cygwin\bin\env.exe CYGWIN_NOWINPATH=1 CHERE_INVOKING=1 C:\cygwin\bin\bash.exe -o igncr '{0}'
347348
run: |
348349
test/run-tests.sh --only-internal
349350

0 commit comments

Comments
 (0)