mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-23 23:27:57 +01:00
Update .gitlab-ci.yml
This commit is contained in:
parent
e3e6fc63f6
commit
af91524d70
105
.gitlab-ci.yml
105
.gitlab-ci.yml
@ -114,19 +114,64 @@ test:cargo:
|
|||||||
# - linux
|
# - linux
|
||||||
# - docker
|
# - docker
|
||||||
|
|
||||||
build:nightly:
|
build:nightly-armv6:
|
||||||
image: rust:latest
|
image: rust:latest
|
||||||
stage: build
|
stage: build
|
||||||
|
before_script:
|
||||||
|
- cp cargo-cross-config /usr/local/cargo/config
|
||||||
|
- dpkg --add-architecture armel
|
||||||
|
- apt-get update -y
|
||||||
|
- 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:armel libssl-dev:armel
|
||||||
|
- 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
|
||||||
- cargo build --release --target armv7-unknown-linux-gnueabihf
|
|
||||||
- cargo build --release --target x86_64-unknown-linux-gnu
|
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- target/arm-unknown-linux-gnueabihf/release
|
- target/arm-unknown-linux-gnueabihf/release
|
||||||
|
# only:
|
||||||
|
# - development
|
||||||
|
tags:
|
||||||
|
- linux
|
||||||
|
- docker
|
||||||
|
|
||||||
|
build:nightly-armv7:
|
||||||
|
image: rust:latest
|
||||||
|
stage: build
|
||||||
|
before_script:
|
||||||
|
- cp cargo-cross-config /usr/local/cargo/config
|
||||||
|
- dpkg --add-architecture armhf
|
||||||
|
- 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 --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
|
||||||
|
script:
|
||||||
|
- cargo update
|
||||||
|
- cargo build --release --target armv7-unknown-linux-gnueabihf
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
- target/armv7-unknown-linux-gnueabihf/release
|
- target/armv7-unknown-linux-gnueabihf/release
|
||||||
|
# only:
|
||||||
|
# - development
|
||||||
|
tags:
|
||||||
|
- linux
|
||||||
|
- docker
|
||||||
|
|
||||||
|
build:nightly-x86_64:
|
||||||
|
image: rust:latest
|
||||||
|
stage: build
|
||||||
|
before_script:
|
||||||
|
- cp cargo-cross-config /usr/local/cargo/config
|
||||||
|
- apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y --no-install-recommends capnproto build-essential cmake clang libclang-dev libgsasl7-dev
|
||||||
|
script:
|
||||||
|
- cargo update
|
||||||
|
- cargo build --release --target x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
- target/x86_64-unknown-linux-gnu/release
|
- target/x86_64-unknown-linux-gnu/release
|
||||||
# only:
|
# only:
|
||||||
# - development
|
# - development
|
||||||
@ -134,21 +179,69 @@ build:nightly:
|
|||||||
- linux
|
- linux
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
build:release:
|
build:release-armv6:
|
||||||
image: rust:latest
|
image: rust:latest
|
||||||
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 armel
|
||||||
|
- apt-get update -y
|
||||||
|
- 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:armel libssl-dev:armel
|
||||||
|
- 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
|
||||||
- cargo build --release --target armv7-unknown-linux-gnueabihf
|
|
||||||
- cargo build --release --target x86_64-unknown-linux-gnu
|
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- target/arm-unknown-linux-gnueabihf/release
|
- target/arm-unknown-linux-gnueabihf/release
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_TAG
|
||||||
|
tags:
|
||||||
|
- linux
|
||||||
|
- docker
|
||||||
|
|
||||||
|
build:release-armv7:
|
||||||
|
image: rust:latest
|
||||||
|
stage: build
|
||||||
|
variables:
|
||||||
|
BFFHD_BUILD_TAGGED_RELEASE: 1
|
||||||
|
before_script:
|
||||||
|
- cp cargo-cross-config /usr/local/cargo/config
|
||||||
|
- dpkg --add-architecture armhf
|
||||||
|
- 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 --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
|
||||||
|
script:
|
||||||
|
- cargo update
|
||||||
|
- cargo build --release --target armv7-unknown-linux-gnueabihf
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
- target/armv7-unknown-linux-gnueabihf/release
|
- target/armv7-unknown-linux-gnueabihf/release
|
||||||
|
rules:
|
||||||
|
- if: $CI_COMMIT_TAG
|
||||||
|
tags:
|
||||||
|
- linux
|
||||||
|
- docker
|
||||||
|
|
||||||
|
build:release-x86_64:
|
||||||
|
image: rust:latest
|
||||||
|
stage: build
|
||||||
|
variables:
|
||||||
|
BFFHD_BUILD_TAGGED_RELEASE: 1
|
||||||
|
before_script:
|
||||||
|
- cp cargo-cross-config /usr/local/cargo/config
|
||||||
|
- apt-get install -o dir::cache::archives="$APT_CACHE_DIR" -y --no-install-recommends capnproto build-essential cmake clang libclang-dev libgsasl7-dev
|
||||||
|
script:
|
||||||
|
- cargo update
|
||||||
|
- cargo build --release --target x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
- target/x86_64-unknown-linux-gnu/release
|
- target/x86_64-unknown-linux-gnu/release
|
||||||
rules:
|
rules:
|
||||||
- if: $CI_COMMIT_TAG
|
- if: $CI_COMMIT_TAG
|
||||||
|
Loading…
Reference in New Issue
Block a user