ci/win: add mingw64

This commit is contained in:
umarcor 2020-11-30 09:12:54 +01:00
parent 5c76ce3923
commit bbd09ce87c
2 changed files with 11 additions and 6 deletions

3
.github/mingw64 vendored Executable file
View File

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

View File

@ -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