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
Package registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
chromaticpipe
SRB2
Commits
3145253f
Commit
3145253f
authored
3 months ago
by
Alam Ed Arias
Browse files
Options
Downloads
Patches
Plain Diff
GitLab CI: set CC,CXX and LD for Windows vcpkg builds
parent
e2200c1e
Branches
joystick-juggling-maz
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab/ci/jobs/windows-x64.yml
+4
-21
4 additions, 21 deletions
.gitlab/ci/jobs/windows-x64.yml
.gitlab/ci/jobs/windows-x86.yml
+4
-21
4 additions, 21 deletions
.gitlab/ci/jobs/windows-x86.yml
with
8 additions
and
42 deletions
.gitlab/ci/jobs/windows-x64.yml
+
4
−
21
View file @
3145253f
...
@@ -34,9 +34,10 @@ Windows x64:
...
@@ -34,9 +34,10 @@ Windows x64:
name
:
"
$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-Win64"
name
:
"
$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-Win64"
variables
:
variables
:
PREFIX
:
x86_64-w64-mingw32
VCPKG_TARGET_TRIPLET
:
x64-mingw-static
VCPKG_TARGET_TRIPLET
:
x64-mingw-static
LD
:
/usr/bin/x86_64-w64-mingw32-ld
CC
:
x86_64-w64-mingw32-gcc
CXX
:
x86_64-w64-mingw32-g++
LD
:
x86_64-w64-mingw32-ld
script
:
script
:
-
|
-
|
...
@@ -68,7 +69,7 @@ Windows x64:
...
@@ -68,7 +69,7 @@ Windows x64:
-
-
|
-
-
|
# cmake
# cmake
echo -e "\e[0Ksection_start:`date +%s`:cmake[collapsed=false]\r\e[0KBuilding Makefiles"
echo -e "\e[0Ksection_start:`date +%s`:cmake[collapsed=false]\r\e[0KBuilding Makefiles"
-
cmake -B build.cmake -DSRB2_CONFIG_ERRORMODE=ON
--toolchain $
VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/toolchains/mingw.cmake -G "Unix Makefiles"
-
cmake -B build.cmake -DSRB2_CONFIG_ERRORMODE=ON
-DCMAKE_TOOLCHAIN_FILE=${
VCPKG_ROOT
}
/scripts/buildsystems/vcpkg.cmake
-DVCPKG_TARGET_TRIPLET=${VCPKG_TARGET_TRIPLET}
-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/toolchains/mingw.cmake -G "Unix Makefiles"
-
|
-
|
# cmake
# cmake
echo -e "\e[0Ksection_end:`date +%s`:cmake\r\e[0K"
echo -e "\e[0Ksection_end:`date +%s`:cmake\r\e[0K"
...
@@ -80,21 +81,3 @@ Windows x64:
...
@@ -80,21 +81,3 @@ Windows x64:
-
|
-
|
# make
# make
echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K"
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"
-
-
|
# 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"
This diff is collapsed.
Click to expand it.
.gitlab/ci/jobs/windows-x86.yml
+
4
−
21
View file @
3145253f
...
@@ -30,9 +30,10 @@ Windows x86:
...
@@ -30,9 +30,10 @@ Windows x86:
name
:
"
$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-Win32"
name
:
"
$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-Win32"
variables
:
variables
:
PREFIX
:
i686-w64-mingw32
VCPKG_TARGET_TRIPLET
:
x86-mingw-static
VCPKG_TARGET_TRIPLET
:
x86-mingw-static
LD
:
/usr/bin/i686-w64-mingw32-ld
CC
:
i686-w64-mingw32-gcc
CXX
:
i686-w64-mingw32-g++
LD
:
i686-w64-mingw32-ld
script
:
script
:
-
|
-
|
...
@@ -64,7 +65,7 @@ Windows x86:
...
@@ -64,7 +65,7 @@ Windows x86:
-
-
|
-
-
|
# cmake
# cmake
echo -e "\e[0Ksection_start:`date +%s`:cmake[collapsed=false]\r\e[0KBuilding Makefiles"
echo -e "\e[0Ksection_start:`date +%s`:cmake[collapsed=false]\r\e[0KBuilding Makefiles"
-
cmake -B build.cmake -DSRB2_CONFIG_ERRORMODE=ON
--toolchain $
VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake -DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/toolchains/mingw.cmake -G "Unix Makefiles"
-
cmake -B build.cmake -DSRB2_CONFIG_ERRORMODE=ON
-DCMAKE_TOOLCHAIN_FILE=${
VCPKG_ROOT
}
/scripts/buildsystems/vcpkg.cmake
-DVCPKG_TARGET_TRIPLET=${VCPKG_TARGET_TRIPLET}
-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/toolchains/mingw.cmake -G "Unix Makefiles"
-
|
-
|
# cmake
# cmake
echo -e "\e[0Ksection_end:`date +%s`:cmake\r\e[0K"
echo -e "\e[0Ksection_end:`date +%s`:cmake\r\e[0K"
...
@@ -76,21 +77,3 @@ Windows x86:
...
@@ -76,21 +77,3 @@ Windows x86:
-
|
-
|
# make
# make
echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K"
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"
-
-
|
# 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"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment