CI: mingw: Set cmd as the default shell

It is used in more steps than `sh`.
This commit is contained in:
Nobuyoshi Nakada 2025-08-09 20:26:19 +09:00
parent cc4eba000b
commit a443cd012a
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465

View file

@ -117,6 +117,7 @@ jobs:
endgroup endgroup
[ ${#failed[@]} -eq 0 ] [ ${#failed[@]} -eq 0 ]
shell: sh
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with: with:
@ -135,6 +136,7 @@ jobs:
run: > run: >
../src/configure --disable-install-doc --prefix=/. ../src/configure --disable-install-doc --prefix=/.
--build=$CHOST --host=$CHOST --target=$CHOST --build=$CHOST --host=$CHOST --target=$CHOST
shell: sh
- name: make all - name: make all
timeout-minutes: 30 timeout-minutes: 30
@ -157,7 +159,6 @@ jobs:
- name: test - name: test
timeout-minutes: 30 timeout-minutes: 30
run: make test run: make test
shell: cmd
env: env:
GNUMAKEFLAGS: '' GNUMAKEFLAGS: ''
RUBY_TESTOPTS: '-v --tty=no' RUBY_TESTOPTS: '-v --tty=no'
@ -165,7 +166,6 @@ jobs:
- name: test-all - name: test-all
timeout-minutes: 45 timeout-minutes: 45
shell: cmd
run: | run: |
make ${{ StartsWith(matrix.test_task, 'test/') && matrix.test_task || 'test-all' }} make ${{ StartsWith(matrix.test_task, 'test/') && matrix.test_task || 'test-all' }}
env: env:
@ -180,7 +180,6 @@ jobs:
timeout-minutes: 10 timeout-minutes: 10
run: | run: |
make ${{ StartsWith(matrix.test_task, 'spec/') && matrix.test_task || 'test-spec' }} make ${{ StartsWith(matrix.test_task, 'spec/') && matrix.test_task || 'test-spec' }}
shell: cmd
if: ${{ matrix.test_task == 'check' || matrix.test_task == 'test-spec' || StartsWith(matrix.test_task, 'spec/') }} if: ${{ matrix.test_task == 'check' || matrix.test_task == 'test-spec' || StartsWith(matrix.test_task, 'spec/') }}
- uses: ./src/.github/actions/slack - uses: ./src/.github/actions/slack
@ -192,4 +191,4 @@ jobs:
defaults: defaults:
run: run:
working-directory: build working-directory: build
shell: sh shell: cmd