mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-23 23:27:57 +01:00
move deps to global before_script
This commit is contained in:
parent
0ad8418b2d
commit
e3e6fc63f6
@ -25,8 +25,15 @@ stages:
|
||||
|
||||
# install build dependencies
|
||||
before_script:
|
||||
- cp cargo-cross-config /usr/local/cargo/config
|
||||
- dpkg --add-architecture armhf
|
||||
- dpkg --add-architecture armel
|
||||
- apt-get update -y
|
||||
- apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y --no-install-recommends capnproto build-essential cmake clang libclang-dev libgsasl7-dev
|
||||
- apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
|
||||
- apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y libc6-armel-cross libc6-dev-armel-cross gcc-arm-linux-gnueabi g++-arm-linux-gnueabi
|
||||
- apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y --no-install-recommends capnproto build-essential cmake clang libclang-dev libgsasl7-dev libgsasl7-dev:armhf libssl-dev:armhf libgsasl7-dev:armel libssl-dev:armel
|
||||
- rustup target add armv7-unknown-linux-gnueabihf
|
||||
- rustup target add arm-unknown-linux-gnueabihf
|
||||
- rustup update
|
||||
- rustup component add rustfmt
|
||||
- rustup component add clippy
|
||||
@ -110,16 +117,6 @@ test:cargo:
|
||||
build:nightly:
|
||||
image: rust:latest
|
||||
stage: build
|
||||
before_script:
|
||||
- cp cargo-cross-config /usr/local/cargo/config
|
||||
- dpkg --add-architecture armhf
|
||||
- dpkg --add-architecture armel
|
||||
- apt-get update -y
|
||||
- apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
|
||||
- apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y libc6-armel-cross libc6-dev-armel-cross gcc-arm-linux-gnueabi g++-arm-linux-gnueabi
|
||||
- apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y --no-install-recommends capnproto build-essential cmake clang libclang-dev libgsasl7-dev libgsasl7-dev:armhf libssl-dev:armhf
|
||||
- rustup target add armv7-unknown-linux-gnueabihf
|
||||
- rustup target add arm-unknown-linux-gnueabihf
|
||||
script:
|
||||
- cargo update
|
||||
- cargo build --release --target arm-unknown-linux-gnueabihf
|
||||
@ -142,16 +139,6 @@ build:release:
|
||||
stage: build
|
||||
variables:
|
||||
BFFHD_BUILD_TAGGED_RELEASE: 1
|
||||
before_script:
|
||||
- cp cargo-cross-config /usr/local/cargo/config
|
||||
- dpkg --add-architecture armhf
|
||||
- dpkg --add-architecture armel
|
||||
- apt-get update -y
|
||||
- apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y libc6-armhf-cross libc6-dev-armhf-cross gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
|
||||
- apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y libc6-armel-cross libc6-dev-armel-cross gcc-arm-linux-gnueabi g++-arm-linux-gnueabi
|
||||
- apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y --no-install-recommends capnproto build-essential cmake clang libclang-dev libgsasl7-dev libgsasl7-dev:armhf libssl-dev:armhf libgsasl7-dev:armel libssl-dev:armel
|
||||
- rustup target add armv7-unknown-linux-gnueabihf
|
||||
- rustup target add arm-unknown-linux-gnueabihf
|
||||
script:
|
||||
- cargo update
|
||||
- cargo build --release --target arm-unknown-linux-gnueabihf
|
||||
@ -174,8 +161,8 @@ upload:nightly:
|
||||
image: curlimages/curl:latest
|
||||
variables:
|
||||
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/diflouroborane/nightly"
|
||||
# rules:
|
||||
# - if: $CI_COMMIT_TAG
|
||||
# only:
|
||||
# - development
|
||||
before_script:
|
||||
- ''
|
||||
script:
|
||||
|
Loading…
Reference in New Issue
Block a user