Skip to content

Commit a443cd0

Browse files
committed
CI: mingw: Set cmd as the default shell
It is used in more steps than `sh`.
1 parent cc4eba0 commit a443cd0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/mingw.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ jobs:
117117
endgroup
118118
119119
[ ${#failed[@]} -eq 0 ]
120+
shell: sh
120121

121122
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
122123
with:
@@ -135,6 +136,7 @@ jobs:
135136
run: >
136137
../src/configure --disable-install-doc --prefix=/.
137138
--build=$CHOST --host=$CHOST --target=$CHOST
139+
shell: sh
138140

139141
- name: make all
140142
timeout-minutes: 30
@@ -157,15 +159,13 @@ jobs:
157159
- name: test
158160
timeout-minutes: 30
159161
run: make test
160-
shell: cmd
161162
env:
162163
GNUMAKEFLAGS: ''
163164
RUBY_TESTOPTS: '-v --tty=no'
164165
if: ${{ matrix.test_task == 'check' || matrix.test_task == 'test' }}
165166

166167
- name: test-all
167168
timeout-minutes: 45
168-
shell: cmd
169169
run: |
170170
make ${{ StartsWith(matrix.test_task, 'test/') && matrix.test_task || 'test-all' }}
171171
env:
@@ -180,7 +180,6 @@ jobs:
180180
timeout-minutes: 10
181181
run: |
182182
make ${{ StartsWith(matrix.test_task, 'spec/') && matrix.test_task || 'test-spec' }}
183-
shell: cmd
184183
if: ${{ matrix.test_task == 'check' || matrix.test_task == 'test-spec' || StartsWith(matrix.test_task, 'spec/') }}
185184

186185
- uses: ./src/.github/actions/slack
@@ -192,4 +191,4 @@ jobs:
192191
defaults:
193192
run:
194193
working-directory: build
195-
shell: sh
194+
shell: cmd

0 commit comments

Comments
 (0)