mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-07-20 19:34:28 +08:00
Work on supporting MingW in CI.
This commit is contained in:
parent
3b5c3d4317
commit
63d8f82df5
@ -1,13 +1,43 @@
|
|||||||
image: Visual Studio 2017
|
environment:
|
||||||
|
matrix:
|
||||||
|
- platform: x86
|
||||||
|
image: Visual Studio 2015
|
||||||
|
generator: "Visual Studio 2015"
|
||||||
|
compiler: msvc
|
||||||
|
configuration: Release
|
||||||
|
|
||||||
platform:
|
- platform: x86
|
||||||
- Win32
|
image: Visual Studio 2015
|
||||||
- x64
|
generator: "MinGW Makefiles"
|
||||||
|
compiler: mingw
|
||||||
|
toolchain: C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1
|
||||||
|
configuration: Release
|
||||||
|
|
||||||
|
- platform: x64
|
||||||
|
image: Visual Studio 2015
|
||||||
|
generator: "Visual Studio 2015"
|
||||||
|
compiler: msvc
|
||||||
|
configuration: Release
|
||||||
|
|
||||||
|
- platform: x64
|
||||||
|
image: Visual Studio 2015
|
||||||
|
generator: "MinGW Makefiles"
|
||||||
|
compiler: mingw
|
||||||
|
toolchain: C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1
|
||||||
|
configuration: Release
|
||||||
|
|
||||||
|
- platform: x86
|
||||||
|
image: Visual Studio 2017
|
||||||
|
generator: "Visual Studio 2017"
|
||||||
|
compiler: msvc
|
||||||
|
configuration: Release
|
||||||
|
|
||||||
|
- platform: x64
|
||||||
|
image: Visual Studio 2017
|
||||||
|
generator: "Visual Studio 2017"
|
||||||
|
compiler: msvc
|
||||||
|
configuration: Release
|
||||||
|
|
||||||
configuration:
|
|
||||||
- Debug
|
|
||||||
- Release
|
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
fast_finish: false
|
fast_finish: false
|
||||||
|
|
||||||
@ -18,13 +48,13 @@ init:
|
|||||||
install:
|
install:
|
||||||
- cmd: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
|
- cmd: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
|
||||||
|
|
||||||
before_build:
|
build_script:
|
||||||
- cmake . -Bbuild -A%PLATFORM% -DCMAKE_BUILD_TYPE=%configuration%
|
- mkdir build
|
||||||
|
- cd build
|
||||||
build:
|
- if [%compiler%]==[msvc] cmake -G%generator% -A%platform% -DCMAKE_BUILD_TYPE=%configuration% ..
|
||||||
project: build/ghcfilesystem.sln
|
- if [%compiler%]==[mingw] set PATH=%toolchain%/bin;%PATH%
|
||||||
parallel: true
|
- if [%compiler%]==[mingw] cmake -G%generator% -DCMAKE_PREFIX_PATH=C:\mingw-w64\%toolchain% -DCMAKE_BUILD_TYPE=%configuration% ..
|
||||||
verbosity: minimal
|
- cmake --build . --config %configuration%
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- cd build
|
- cd build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user