mirror of https://github.com/AxioDL/metaforce.git
Use MSVC for AppVeyor; build static Windows binaries in GitLab CI
This commit is contained in:
parent
7e8bc8dac8
commit
09331e08e4
|
@ -53,14 +53,8 @@ before_build:
|
|||
# Configure cmake
|
||||
- set PATH=C:\projects\deps\cmake\cmake-3.16.4-win64-x64\bin;%PATH%
|
||||
- cmake --version
|
||||
# Configure LLVM
|
||||
- set PATH=C:\projects\deps\llvm\bin;%PATH%
|
||||
- llvm-config --version
|
||||
- clang-cl -v
|
||||
- set CC=clang-cl -mrtm
|
||||
- set CXX=clang-cl -mrtm
|
||||
# Configure VS
|
||||
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
|
||||
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat" amd64
|
||||
# Fetch submodules
|
||||
- cd %APPVEYOR_BUILD_FOLDER%
|
||||
- git submodule update --init --recursive
|
||||
|
@ -68,7 +62,7 @@ before_build:
|
|||
build_script:
|
||||
- mkdir build
|
||||
- cd build
|
||||
- cmake -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DLLVM_ROOT_DIR=C:\projects\deps\llvm -GNinja ..
|
||||
- cmake -DCMAKE_BUILD_TYPE=%CONFIGURATION% -DLLVM_ROOT_DIR=C:\projects\deps\llvm -DCMAKE_CXX_FLAGS= -DCMAKE_C_FLAGS= -GNinja ..
|
||||
- ninja urde
|
||||
|
||||
#notifications:
|
||||
|
|
|
@ -131,9 +131,12 @@ build:linux:avx2:
|
|||
cmake
|
||||
-GNinja
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||
-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded
|
||||
-DURDE_DLPACKAGE="urde-$env:CI_PIPELINE_ID-win32-x86_64-$env:URDE_VECTOR_ISA"
|
||||
-DURDE_VECTOR_ISA="$env:URDE_VECTOR_ISA"
|
||||
-DLLVM_ROOT_DIR=C:\projects\deps\llvm
|
||||
-DCMAKE_C_FLAGS=
|
||||
-DCMAKE_CXX_FLAGS=
|
||||
..
|
||||
- ninja urde hecl visigen
|
||||
- 'copy Binaries\urde.exe "$env:CI_PROJECT_DIR\urde.exe"'
|
||||
|
|
Loading…
Reference in New Issue