Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Merge requests
!2641
use Unix Makefiles to build Win
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
use Unix Makefiles to build Win
LoganAir/SRB2:gitci-Windows-fix
into
master
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
Logan Aerl Arias
requested to merge
LoganAir/SRB2:gitci-Windows-fix
into
master
2 months ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
use Unix Makefiles to build Win
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
2f6c94bd
1 commit,
2 months ago
2 files
+
81
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
.gitlab/ci/jobs/windows-x64.yml
+
76
−
1
Options
@@ -7,6 +7,30 @@ Windows x64:
allow_failure
:
true
cache
:
-
key
:
ccache-$CI_JOB_NAME_SLUG-$CI_COMMIT_REF_SLUG
fallback_keys
:
-
ccache-$CI_JOB_NAME_SLUG-$CI_DEFAULT_BRANCH
-
ccache-$CI_JOB_NAME_SLUG-master
paths
:
-
build/ccache
-
build/ccache_statslog
-
key
:
apt-$CI_JOB_IMAGE
paths
:
-
build/apt-cache
unprotect
:
true
-
key
:
vcpkg-root
paths
:
-
build/vcpkg-root
unprotect
:
true
-
key
:
vcpkg-binary-cache-x64-mingw-static
paths
:
-
build/vcpkg-binary-cache
unprotect
:
true
artifacts
:
paths
:
-
"
build.cmake/bin/"
@@ -20,6 +44,27 @@ Windows x64:
CXX
:
/usr/lib/ccache/x86_64-w64-mingw32-g++
script
:
-
|
# vcpkg
echo -e "\e[0Ksection_start:`date +%s`:vcpkg-root[collapsed=true]\r\e[0KUpdating vcpkg"
if [ -d "build/vcpkg-root" ]; then
pushd build/vcpkg-root
git fetch https://github.com/Microsoft/vcpkg master
git reset --hard FETCH_HEAD
popd
else
mkdir -p build
git clone https://github.com/Microsoft/vcpkg build/vcpkg-root
fi
export VCPKG_ROOT=$(pwd)/build/vcpkg-root
export VCPKG_BINARY_SOURCES="clear;files,/opt/vcpkg.bsources,read;files,$(pwd)/build/vcpkg-binary-cache,readwrite"
mkdir -p "build/vcpkg-binary-cache"
echo -e "\e[0Ksection_end:`date +%s`:vcpkg-root\r\e[0K"
-
-
|
# apt_toolchain
echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
@@ -39,7 +84,7 @@ Windows x64:
-
-
|
# cmake
echo -e "\e[0Ksection_start:`date +%s`:cmake[collapsed=false]\r\e[0KBuilding Makefiles"
-
cmake -B build.cmake -DSRB2_USE_CCACHE=NO -DSRB2_CONFIG_ERRORMODE=ON -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-mingw-static -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/toolchains/mingw.cmake
-
cmake -B build.cmake -DSRB2_USE_CCACHE=NO -DSRB2_CONFIG_ERRORMODE=ON -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-mingw-static -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/toolchains/mingw.cmake
-G "Unix Makefiles"
-
|
# cmake
echo -e "\e[0Ksection_end:`date +%s`:cmake\r\e[0K"
@@ -51,3 +96,33 @@ Windows x64:
-
|
# make
echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K"
after_script
:
-
-
|
# apt_clean
echo -e "\e[0Ksection_start:`date +%s`:apt_clean[collapsed=true]\r\e[0KCleaning of unneeded APT packages"
-
apt-get autoclean
-
|
# apt_clean
echo -e "\e[0Ksection_end:`date +%s`:apt_clean\r\e[0K"
-
-
|
# vcpkg_clean
echo -e "\e[0Ksection_start:`date +%s`:vcpkg_clean[collapsed=true]\r\e[0KCleaning vcpkg-root"
if [ -d "build/vcpkg-root" ]; then
pushd "build/vcpkg-root"
git clean -f
popd
fi
echo -e "\e[0Ksection_end:`date +%s`:vcpkg_clean\r\e[0K"
-
-
|
# ccache_stats
echo -e "\e[0Ksection_start:`date +%s`:ccache_stats[collapsed=true]\r\e[0Kccache statistics:"
-
ccache --show-stats
-
ccache --show-log-stats ||
true
-
|
# ccahe_stats
echo -e "\e[0Ksection_end:`date +%s`:ccache_stats\r\e[0K"
Loading