ci/win: use mingw64 as a custom shell
This commit is contained in:
parent
bbd09ce87c
commit
7a729f3ff8
|
|
@ -0,0 +1,4 @@
|
||||||
|
@echo off
|
||||||
|
setlocal
|
||||||
|
set MSYS=winsymlinks:nativestrict
|
||||||
|
C:\\msys64\\msys2_shell.cmd -defterm -no-start -mingw64 -full-path -here %*
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
#!/usr/bin/env sh
|
|
||||||
|
|
||||||
MSYS=winsymlinks:nativestrict C:\\msys64\\msys2_shell.cmd -defterm -no-start -mingw64 -full-path -here -c "$@" --
|
|
||||||
|
|
@ -8,7 +8,6 @@ jobs:
|
||||||
|
|
||||||
|
|
||||||
lin:
|
lin:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|
@ -42,10 +41,15 @@ jobs:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
name: '🧊 Windows'
|
name: '🧊 Windows'
|
||||||
defaults:
|
defaults:
|
||||||
shell: bash
|
run:
|
||||||
|
shell: mingw64 {0}
|
||||||
steps:
|
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
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
|
@ -58,11 +62,8 @@ jobs:
|
||||||
mingw-w64-x86_64-toolchain
|
mingw-w64-x86_64-toolchain
|
||||||
update: true
|
update: true
|
||||||
|
|
||||||
- name: Add .github to PATH
|
|
||||||
run: echo "$(cygpath -w $(pwd)/.github)" >> $GITHUB_PATH
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: mingw64 ./.github/build.sh
|
run: ./.github/build.sh
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: mingw64 ./.github/test.sh
|
run: ./.github/test.sh
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue