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
Commits
e76e3f24
Commit
e76e3f24
authored
1 year ago
by
Alam Ed Arias
Browse files
Options
Downloads
Patches
Plain Diff
Switch Clang build to use cmake
parent
fc36b8d7
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!2312
Switch Clang build to use cmake
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+24
-12
24 additions, 12 deletions
.gitlab-ci.yml
with
24 additions
and
12 deletions
.gitlab-ci.yml
+
24
−
12
View file @
e76e3f24
...
@@ -94,7 +94,7 @@ default:
...
@@ -94,7 +94,7 @@ default:
-
-
|
-
-
|
# apt_common
# apt_common
echo -e "\e[0Ksection_start:`date +%s`:apt_common[collapsed=true]\r\e[0KInstalling common packages"
echo -e "\e[0Ksection_start:`date +%s`:apt_common[collapsed=true]\r\e[0KInstalling common packages"
-
apt-get install make git ccache nasm
-
apt-get install make git ccache nasm
cmake ca-certificates
-
|
-
|
# apt_common
# apt_common
echo -e "\e[0Ksection_end:`date +%s`:apt_common\r\e[0K"
echo -e "\e[0Ksection_end:`date +%s`:apt_common\r\e[0K"
...
@@ -526,21 +526,22 @@ Windows x64:
...
@@ -526,21 +526,22 @@ Windows x64:
Debian stable Clang
:
Debian stable Clang
:
stage
:
build
stage
:
build
when
:
manual
when
:
on_success
allow_failure
:
tru
e
allow_failure
:
fals
e
artifacts
:
artifacts
:
paths
:
paths
:
-
"
bin/"
-
"
build.clang/
bin/"
-
"
src/comptime.h"
-
"
build.clang/
src/comptime.h"
expose_as
:
"
clang"
expose_as
:
"
clang"
name
:
"
$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-clang"
name
:
"
$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-clang"
variables
:
variables
:
CC
:
clang
CC
:
clang
WFLAGS
:
-Wno-cast-align
CXX
:
clang
CFLAGS
:
-Wno-cast-align
WFLAGS
:
-Wno-cast-align -Wno-implicit-const-int-float-conversion -Werror
CFLAGS
:
-Wno-cast-align -Wno-implicit-const-int-float-conversion -Werror
LDFLAGS
:
-Wl,-fuse-ld=gold
LDFLAGS
:
-Wl,-fuse-ld=gold
script
:
script
:
...
@@ -560,10 +561,18 @@ Debian stable Clang:
...
@@ -560,10 +561,18 @@ Debian stable Clang:
# apt_development
# apt_development
echo -e "\e[0Ksection_end:`date +%s`:apt_development\r\e[0K"
echo -e "\e[0Ksection_end:`date +%s`:apt_development\r\e[0K"
-
-
|
# cmake
echo -e "\e[0Ksection_start:`date +%s`:cmake[collapsed=false]\r\e[0KBuilding Makefiles"
-
cmake -B build.clang -D CPM_USE_LOCAL_PACKAGES:BOOL=ON -D SRB2_CONFIG_ENABLE_TESTS:BOOL=OFF -D SRB2_CONFIG_SYSTEM_LIBRARIES:BOOL=ON -G "Unix Makefiles"
-
|
# cmake
echo -e "\e[0Ksection_end:`date +%s`:cmake\r\e[0K"
-
-
|
-
-
|
# make
# make
echo -e "\e[0Ksection_start:`date +%s`:make[collapsed=false]\r\e[0KCompiling SRB2"
echo -e "\e[0Ksection_start:`date +%s`:make[collapsed=false]\r\e[0KCompiling SRB2"
-
make --directory=
src
--keep-going
CCACHE=1 ERRORMODE=1 NONX86=1
|| make --directory=src --keep-going
CCACHE=1 ERRORMODE=1 NONX86=1
-
make --directory=
build.clang
--keep-going || make --directory=src --keep-going
-
|
-
|
# make
# make
echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K"
echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K"
...
@@ -573,19 +582,22 @@ Debian testing Clang:
...
@@ -573,19 +582,22 @@ Debian testing Clang:
when
:
manual
when
:
manual
allow_failure
:
true
image
:
debian:testing-slim
image
:
debian:testing-slim
artifacts
:
artifacts
:
paths
:
paths
:
-
"
bin/"
-
"
build.clang/
bin/"
-
"
src/comptime.h"
-
"
build.clang/
src/comptime.h"
expose_as
:
"
testing-clang"
expose_as
:
"
testing-clang"
name
:
"
$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-testing-clang"
name
:
"
$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-testing-clang"
variables
:
variables
:
CC
:
clang
CC
:
clang
WFLAGS
:
-Wno-cast-align -Wno-deprecated-non-prototype -Wno-single-bit-bitfield-constant-conversion
CXX
:
clang
CFLAGS
:
-Wno-cast-align -Wno-deprecated-non-prototype -Wno-single-bit-bitfield-constant-conversion
WFLAGS
:
-Wno-cast-align -Wno-implicit-const-int-float-conversion -Werror -Wno-deprecated-non-prototype -Wno-single-bit-bitfield-constant-conversion
CFLAGS
:
-Wno-cast-align -Wno-implicit-const-int-float-conversion -Werror -Wno-deprecated-non-prototype -Wno-single-bit-bitfield-constant-conversion
LDFLAGS
:
-Wl,-fuse-ld=gold
LDFLAGS
:
-Wl,-fuse-ld=gold
Alpine 3 GCC
:
Alpine 3 GCC
:
...
...
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