move deps to global before_script

This commit is contained in:
Kai Kriegel 2022-02-15 00:08:14 +00:00
parent 0ad8418b2d
commit e3e6fc63f6

View File

@ -25,8 +25,15 @@ stages:
# install build dependencies # install build dependencies
before_script: before_script:
- cp cargo-cross-config /usr/local/cargo/config
- dpkg --add-architecture armhf
- dpkg --add-architecture armel
- apt-get update -y - 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 update
- rustup component add rustfmt - rustup component add rustfmt
- rustup component add clippy - rustup component add clippy
@ -110,16 +117,6 @@ test:cargo:
build:nightly: build:nightly:
image: rust:latest image: rust:latest
stage: build 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: script:
- cargo update - cargo update
- cargo build --release --target arm-unknown-linux-gnueabihf - cargo build --release --target arm-unknown-linux-gnueabihf
@ -142,16 +139,6 @@ build:release:
stage: build stage: build
variables: variables:
BFFHD_BUILD_TAGGED_RELEASE: 1 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: script:
- cargo update - cargo update
- cargo build --release --target arm-unknown-linux-gnueabihf - cargo build --release --target arm-unknown-linux-gnueabihf
@ -174,8 +161,8 @@ upload:nightly:
image: curlimages/curl:latest image: curlimages/curl:latest
variables: variables:
PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/diflouroborane/nightly" PACKAGE_REGISTRY_URL: "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/diflouroborane/nightly"
# rules: # only:
# - if: $CI_COMMIT_TAG # - development
before_script: before_script:
- '' - ''
script: script: