ci/win: add mingw64
This commit is contained in:
parent
5c76ce3923
commit
bbd09ce87c
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
MSYS=winsymlinks:nativestrict C:\\msys64\\msys2_shell.cmd -defterm -no-start -mingw64 -full-path -here -c "$@" --
|
||||||
|
|
@ -41,6 +41,8 @@ jobs:
|
||||||
win:
|
win:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
name: '🧊 Windows'
|
name: '🧊 Windows'
|
||||||
|
defaults:
|
||||||
|
shell: bash
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- run: git config --global core.autocrlf input
|
- run: git config --global core.autocrlf input
|
||||||
|
|
@ -56,11 +58,11 @@ jobs:
|
||||||
mingw-w64-x86_64-toolchain
|
mingw-w64-x86_64-toolchain
|
||||||
update: true
|
update: true
|
||||||
|
|
||||||
- name: Build and test
|
- name: Add .github to PATH
|
||||||
shell: bash
|
run: echo "$(cygpath -w $(pwd)/.github)" >> $GITHUB_PATH
|
||||||
run: |
|
|
||||||
export mingw64='cmd //C RefreshEnv.cmd & set MSYS=winsymlinks:nativestrict & C:\\msys64\\msys2_shell.cmd -defterm -no-start -mingw64 -full-path -here -c "$@" --'
|
|
||||||
|
|
||||||
$mingw64 ./.github/build.sh
|
- name: Build
|
||||||
|
run: mingw64 ./.github/build.sh
|
||||||
|
|
||||||
$mingw64 ./.github/test.sh
|
- name: Test
|
||||||
|
run: mingw64 ./.github/test.sh
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue