mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-23 04:42:47 +00:00
dfada161cc
The singular .gitlab-ci.yml is pretty beefy. Splitting it into smaller files by job and job template will make maintaining the individual jobs easier.
45 lines
1.5 KiB
YAML
45 lines
1.5 KiB
YAML
Debian stable:amd64:
|
|
extends: .srb2ci
|
|
|
|
stage: build
|
|
|
|
artifacts:
|
|
paths:
|
|
- "bin/"
|
|
- "src/comptime.h"
|
|
expose_as: "Debian amd64"
|
|
name: "$CI_PROJECT_PATH_SLUG-$CI_COMMIT_REF_SLUG-$CI_COMMIT_SHORT_SHA-x86-64"
|
|
|
|
variables:
|
|
CC: x86_64-linux-gnu-gcc
|
|
LDFLAGS: -Wl,-fuse-ld=gold
|
|
OBJCOPY: x86_64-linux-gnu-objcopy
|
|
OBJDUMP: x86_64-linux-gnu-objdump
|
|
PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig
|
|
|
|
when: on_success
|
|
|
|
script:
|
|
- - |
|
|
# apt_toolchain
|
|
echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
|
|
- apt-get install gcc-x86-64-linux-gnu || apt-get install gcc
|
|
- |
|
|
# apt_toolchain
|
|
echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
|
|
|
- - |
|
|
# apt_development
|
|
echo -e "\e[0Ksection_start:`date +%s`:apt_development[collapsed=true]\r\e[0KInstalling development packages"
|
|
- apt-get install libsdl2-mixer-dev:amd64 libpng-dev:amd64 libcurl4-openssl-dev:amd64 libgme-dev:amd64 libopenmpt-dev:amd64 libminiupnpc-dev:amd64
|
|
- |
|
|
# apt_development
|
|
echo -e "\e[0Ksection_end:`date +%s`:apt_development\r\e[0K"
|
|
|
|
- - |
|
|
# make
|
|
echo -e "\e[0Ksection_start:`date +%s`:make[collapsed=false]\r\e[0KCompiling SRB2"
|
|
- make --directory=src --keep-going CCACHE=1 ERRORMODE=1 LINUX64=1 || make --directory=src --keep-going CCACHE=1 ERRORMODE=1 LINUX64=1
|
|
- |
|
|
# make
|
|
echo -e "\e[0Ksection_end:`date +%s`:make\r\e[0K"
|