ci/win: use mingw64 as a custom shell

This commit is contained in:
umarcor 2020-12-01 02:19:27 +01:00
parent bbd09ce87c
commit 7a729f3ff8
3 changed files with 13 additions and 11 deletions

4
.github/bin/mingw64.cmd vendored Executable file
View File

@ -0,0 +1,4 @@
@echo off
setlocal
set MSYS=winsymlinks:nativestrict
C:\\msys64\\msys2_shell.cmd -defterm -no-start -mingw64 -full-path -here %*

3
.github/mingw64 vendored
View File

@ -1,3 +0,0 @@
#!/usr/bin/env sh
MSYS=winsymlinks:nativestrict C:\\msys64\\msys2_shell.cmd -defterm -no-start -mingw64 -full-path -here -c "$@" --

View File

@ -8,7 +8,6 @@ jobs:
lin:
strategy:
fail-fast: false
matrix:
@ -42,10 +41,15 @@ jobs:
runs-on: windows-latest
name: '🧊 Windows'
defaults:
shell: bash
run:
shell: mingw64 {0}
steps:
- run: git config --global core.autocrlf input
- name: Setup
shell: bash
run: |
git config --global core.autocrlf input
echo "$(cygpath -w $(pwd)/.github/bin)" >> $GITHUB_PATH
- uses: actions/checkout@v2
@ -58,11 +62,8 @@ jobs:
mingw-w64-x86_64-toolchain
update: true
- name: Add .github to PATH
run: echo "$(cygpath -w $(pwd)/.github)" >> $GITHUB_PATH
- name: Build
run: mingw64 ./.github/build.sh
run: ./.github/build.sh
- name: Test
run: mingw64 ./.github/test.sh
run: ./.github/test.sh