mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Update .gitlab-ci.yml file
Only need to setup debconf in before_script
This commit is contained in:
parent
b8861b1912
commit
3adc15d521
1 changed files with 16 additions and 34 deletions
|
@ -1,19 +1,17 @@
|
||||||
stages: # List of stages for jobs, and their order of execution
|
|
||||||
- build
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
image: debian:stable-slim
|
image: debian:stable-slim
|
||||||
|
|
||||||
.debconf: &debconf
|
stages: # List of stages for jobs, and their order of execution
|
||||||
export DEBIAN_FRONTEND="noninteractive";
|
- build
|
||||||
export DEBIAN_PRIORITY="low";
|
|
||||||
export DEBCONF_NONINTERACTIVE_SEEN="true";
|
|
||||||
|
|
||||||
.job_template: &job_build # This job runs in the build stage, which runs first.
|
variables:
|
||||||
stage: build
|
|
||||||
variables:
|
|
||||||
GIT_STRATEGY: clone
|
GIT_STRATEGY: clone
|
||||||
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_CONCURRENT_ID/$CI_PROJECT_PATH
|
GIT_CLONE_PATH: $CI_BUILDS_DIR/$CI_CONCURRENT_ID/$CI_PROJECT_PATH
|
||||||
|
|
||||||
|
.job_template: &job_build # This job runs in the build stage, which runs first.
|
||||||
|
|
||||||
|
stage: build
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
- key: ccache-$CI_PROJECT_PATH_SLUG-$CI_JOB_NAME_SLUG
|
- key: ccache-$CI_PROJECT_PATH_SLUG-$CI_JOB_NAME_SLUG
|
||||||
fallback_keys:
|
fallback_keys:
|
||||||
|
@ -22,14 +20,18 @@ default:
|
||||||
paths:
|
paths:
|
||||||
- ccache
|
- ccache
|
||||||
- ccache_statslog
|
- ccache_statslog
|
||||||
|
|
||||||
- key: apt-$CI_JOB_IMAGE
|
- key: apt-$CI_JOB_IMAGE
|
||||||
paths:
|
paths:
|
||||||
- apt-cache
|
- apt-cache
|
||||||
unprotect: true
|
unprotect: true
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- - echo -e "\e[0Ksection_start:`date +%s`:debconf_pre[collapsed=true]\r\e[0KSetup debconf's environment"
|
- - echo -e "\e[0Ksection_start:`date +%s`:debconf[collapsed=true]\r\e[0KSetup debconf's environment"
|
||||||
- *debconf
|
- export DEBIAN_FRONTEND="noninteractive"
|
||||||
- echo -e "\e[0Ksection_end:`date +%s`:debconf_pre\r\e[0K"
|
- export DEBIAN_PRIORITY="low"
|
||||||
|
- export DEBCONF_NONINTERACTIVE_SEEN="true"
|
||||||
|
- echo -e "\e[0Ksection_end:`date +%s`:debconf\r\e[0K"
|
||||||
|
|
||||||
- - echo -e "\e[0Ksection_start:`date +%s`:dpkg_aa[collapsed=true]\r\e[0KAdding architectures to dpkg"
|
- - echo -e "\e[0Ksection_start:`date +%s`:dpkg_aa[collapsed=true]\r\e[0KAdding architectures to dpkg"
|
||||||
- dpkg --add-architecture i386
|
- dpkg --add-architecture i386
|
||||||
|
@ -122,10 +124,6 @@ build-i686-w64-mingw32:
|
||||||
variables:
|
variables:
|
||||||
PREFIX: i686-w64-mingw32
|
PREFIX: i686-w64-mingw32
|
||||||
script:
|
script:
|
||||||
- - echo -e "\e[0Ksection_start:`date +%s`:debconf[collapsed=true]\r\e[0KSetup debconf's environment"
|
|
||||||
- *debconf
|
|
||||||
- echo -e "\e[0Ksection_end:`date +%s`:debconf\r\e[0K"
|
|
||||||
|
|
||||||
- - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
|
- - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
|
||||||
- apt-get install gcc-mingw-w64-i686-win32
|
- apt-get install gcc-mingw-w64-i686-win32
|
||||||
- echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
- echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
||||||
|
@ -146,10 +144,6 @@ build-x86_64-linux-gnu:
|
||||||
OBJDUMP: x86_64-linux-gnu-objdump
|
OBJDUMP: x86_64-linux-gnu-objdump
|
||||||
PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig
|
PKG_CONFIG_PATH: /usr/lib/x86_64-linux-gnu/pkgconfig
|
||||||
script:
|
script:
|
||||||
- - echo -e "\e[0Ksection_start:`date +%s`:debconf[collapsed=true]\r\e[0KSetup debconf's environment"
|
|
||||||
- *debconf
|
|
||||||
- echo -e "\e[0Ksection_end:`date +%s`:debconf\r\e[0K"
|
|
||||||
|
|
||||||
- - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
|
- - 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-get install gcc-x86-64-linux-gnu || apt-get install gcc
|
||||||
- echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
- echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
||||||
|
@ -174,10 +168,6 @@ build-i686-linux-gnu:
|
||||||
OBJDUMP: i686-linux-gnu-objdump
|
OBJDUMP: i686-linux-gnu-objdump
|
||||||
PKG_CONFIG_PATH: /usr/lib/i386-linux-gnu/pkgconfig
|
PKG_CONFIG_PATH: /usr/lib/i386-linux-gnu/pkgconfig
|
||||||
script:
|
script:
|
||||||
- - echo -e "\e[0Ksection_start:`date +%s`:debconf[collapsed=true]\r\e[0KSetup debconf's environment"
|
|
||||||
- *debconf
|
|
||||||
- echo -e "\e[0Ksection_end:`date +%s`:debconf\r\e[0K"
|
|
||||||
|
|
||||||
- - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
|
- - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
|
||||||
- apt-get install gcc-i686-linux-gnu || apt-get install gcc
|
- apt-get install gcc-i686-linux-gnu || apt-get install gcc
|
||||||
- echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
- echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
||||||
|
@ -202,10 +192,6 @@ build-aarch64-linux-gnu:
|
||||||
OBJDUMP: aarch64-linux-gnu-objdump
|
OBJDUMP: aarch64-linux-gnu-objdump
|
||||||
PKG_CONFIG_PATH: /usr/lib/aarch64-linux-gnu/pkgconfig
|
PKG_CONFIG_PATH: /usr/lib/aarch64-linux-gnu/pkgconfig
|
||||||
script:
|
script:
|
||||||
- - echo -e "\e[0Ksection_start:`date +%s`:debconf[collapsed=true]\r\e[0KSetup debconf's environment"
|
|
||||||
- *debconf
|
|
||||||
- echo -e "\e[0Ksection_end:`date +%s`:debconf\r\e[0K"
|
|
||||||
|
|
||||||
- - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
|
- - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
|
||||||
- apt-get install gcc-aarch64-linux-gnu || apt-get install gcc
|
- apt-get install gcc-aarch64-linux-gnu || apt-get install gcc
|
||||||
- echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
- echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
||||||
|
@ -227,10 +213,6 @@ build-x86_64-w64-mingw32:
|
||||||
variables:
|
variables:
|
||||||
PREFIX: x86_64-w64-mingw32
|
PREFIX: x86_64-w64-mingw32
|
||||||
script:
|
script:
|
||||||
- - echo -e "\e[0Ksection_start:`date +%s`:debconf[collapsed=true]\r\e[0KSetup debconf's environment"
|
|
||||||
- *debconf
|
|
||||||
- echo -e "\e[0Ksection_end:`date +%s`:debconf\r\e[0K"
|
|
||||||
|
|
||||||
- - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
|
- - echo -e "\e[0Ksection_start:`date +%s`:apt_toolchain[collapsed=true]\r\e[0KInstalling toolchain packages"
|
||||||
- apt-get install gcc-mingw-w64-x86-64-win32
|
- apt-get install gcc-mingw-w64-x86-64-win32
|
||||||
- echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
- echo -e "\e[0Ksection_end:`date +%s`:apt_toolchain\r\e[0K"
|
||||||
|
|
Loading…
Reference in a new issue