mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-31 12:53:07 +02:00
Merge branch 'msvc-ci-2019' into 'main'
CI: Use Visual Studio 2019 for the MSVC CI See merge request GNOME/glib!4318
This commit is contained in:
commit
2fe82cb62d
@ -586,7 +586,7 @@ msys2-clang64:
|
|||||||
paths:
|
paths:
|
||||||
- _build/meson-logs
|
- _build/meson-logs
|
||||||
|
|
||||||
vs2017-x64:
|
vs2019-x64:
|
||||||
extends: .only-default
|
extends: .only-default
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
@ -605,6 +605,7 @@ vs2017-x64:
|
|||||||
--wrap-mode=default
|
--wrap-mode=default
|
||||||
--python.platlibdir=C:\Python37\site-packages
|
--python.platlibdir=C:\Python37\site-packages
|
||||||
--python.purelibdir=C:\Python37\site-packages
|
--python.purelibdir=C:\Python37\site-packages
|
||||||
|
--plat=x64
|
||||||
artifacts:
|
artifacts:
|
||||||
reports:
|
reports:
|
||||||
junit:
|
junit:
|
||||||
@ -621,7 +622,7 @@ vs2017-x64:
|
|||||||
- _build/gthread/libgthread-2.0-0.dll
|
- _build/gthread/libgthread-2.0-0.dll
|
||||||
- _build/gobject/libgobject-2.0-0.dll
|
- _build/gobject/libgobject-2.0-0.dll
|
||||||
|
|
||||||
vs2017-x64-static:
|
vs2019-x64-static:
|
||||||
extends: .only-default
|
extends: .only-default
|
||||||
stage: build
|
stage: build
|
||||||
tags:
|
tags:
|
||||||
@ -641,6 +642,7 @@ vs2017-x64-static:
|
|||||||
--default-library=static
|
--default-library=static
|
||||||
--python.platlibdir=C:\Python37\site-packages
|
--python.platlibdir=C:\Python37\site-packages
|
||||||
--python.purelibdir=C:\Python37\site-packages
|
--python.purelibdir=C:\Python37\site-packages
|
||||||
|
--plat=x64
|
||||||
artifacts:
|
artifacts:
|
||||||
reports:
|
reports:
|
||||||
junit:
|
junit:
|
||||||
@ -652,6 +654,42 @@ vs2017-x64-static:
|
|||||||
paths:
|
paths:
|
||||||
- _build/meson-logs
|
- _build/meson-logs
|
||||||
|
|
||||||
|
vs2019-x86:
|
||||||
|
extends: .only-schedules-or-manual
|
||||||
|
stage: build
|
||||||
|
tags:
|
||||||
|
- win32-ps
|
||||||
|
needs: []
|
||||||
|
variables:
|
||||||
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
|
GIT_SUBMODULE_DEPTH: 1
|
||||||
|
PYTHONUTF8: "1"
|
||||||
|
script:
|
||||||
|
# FIXME: These should use --wrap-mode=nodownload but the Windows CI machines
|
||||||
|
# aren’t currently set up for that.
|
||||||
|
# FIXME: Use --meson-fatal-warnings once we've enabled c_std=gnu99,c99
|
||||||
|
# for the runner's Meson version.
|
||||||
|
- .gitlab-ci/test-msvc.bat --buildtype debug
|
||||||
|
--wrap-mode=default
|
||||||
|
--python.platlibdir=C:\Python37\site-packages
|
||||||
|
--python.purelibdir=C:\Python37\site-packages
|
||||||
|
--plat=x64_x86
|
||||||
|
artifacts:
|
||||||
|
reports:
|
||||||
|
junit:
|
||||||
|
- _build/meson-logs/testlog.junit.xml
|
||||||
|
- _build/meson-logs/testlog-*.junit.xml
|
||||||
|
name: "glib-${env:CI_JOB_NAME}-${env:CI_COMMIT_REF_NAME}"
|
||||||
|
when: always
|
||||||
|
expire_in: 1 week
|
||||||
|
paths:
|
||||||
|
- _build/meson-logs
|
||||||
|
- _build/glib/libglib-2.0-0.dll
|
||||||
|
- _build/gio/libgio-2.0-0.dll
|
||||||
|
- _build/gmodule/libgmodule-2.0-0.dll
|
||||||
|
- _build/gthread/libgthread-2.0-0.dll
|
||||||
|
- _build/gobject/libgobject-2.0-0.dll
|
||||||
|
|
||||||
freebsd-13-x86_64:
|
freebsd-13-x86_64:
|
||||||
extends: .only-schedules-or-manual
|
extends: .only-schedules-or-manual
|
||||||
stage: build
|
stage: build
|
||||||
|
@ -1,15 +1,21 @@
|
|||||||
@echo on
|
@echo on
|
||||||
:: vcvarsall.bat sets various env vars like PATH, INCLUDE, LIB, LIBPATH for the
|
|
||||||
:: specified build architecture
|
|
||||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
|
|
||||||
|
|
||||||
:: Remove quotes from script args
|
:: Remove quotes from script args
|
||||||
setlocal enabledelayedexpansion
|
setlocal enabledelayedexpansion
|
||||||
set args=
|
set args=
|
||||||
|
set stash_plat=0
|
||||||
|
|
||||||
for %%x in (%*) do (
|
for %%x in (%*) do (
|
||||||
set args=!args! %%~x
|
if "%%x" == "--plat" set stash_plat=1
|
||||||
|
if "!stash_plat!" == "0" set args=!args! %%~x
|
||||||
|
if "!stash_plat!" == "1" if /i not "%%x" == "--plat" (set plat=%%x) & (set stash_plat=0)
|
||||||
)
|
)
|
||||||
set args=%args:~1%
|
set args=%args:~1%
|
||||||
|
if "!plat!" == "" set plat=x64
|
||||||
|
|
||||||
|
:: vcvarsall.bat sets various env vars like PATH, INCLUDE, LIB, LIBPATH for the
|
||||||
|
:: specified build architecture
|
||||||
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" !plat!
|
||||||
|
|
||||||
pip3 install --upgrade --user meson==1.4.2 || goto :error
|
pip3 install --upgrade --user meson==1.4.2 || goto :error
|
||||||
meson setup %args% _build || goto :error
|
meson setup %args% _build || goto :error
|
||||||
|
Loading…
x
Reference in New Issue
Block a user