ci: always run build pipelines for win, mac, linux, and android (#9537)
* ci: always run build pipelines for win, mac, linux, and android * ci: always run build pipelines for win, mac, linux, and android * ci: disallow failure for publish scripts * ci: enable tests on master * ci: run tests in debug mode to speed things up * ci: only build windows, darwin, and android targets on PRs * ci: reenable darwin and android pipelines on PR * ci: revert tests to run in release mode
This commit is contained in:
parent
4ddd69cc55
commit
c77e99814b
@ -109,10 +109,10 @@ build-linux-ubuntu-amd64: &build
|
|||||||
<<: *collect_artifacts
|
<<: *collect_artifacts
|
||||||
tags:
|
tags:
|
||||||
- rust-stable
|
- rust-stable
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
build-linux-ubuntu-i386:
|
build-linux-ubuntu-i386:
|
||||||
<<: *build
|
<<: *build
|
||||||
|
only: *releaseable_branches
|
||||||
image: parity/rust-i686:gitlab-ci
|
image: parity/rust-i686:gitlab-ci
|
||||||
variables:
|
variables:
|
||||||
CARGO_TARGET: i686-unknown-linux-gnu
|
CARGO_TARGET: i686-unknown-linux-gnu
|
||||||
@ -121,6 +121,7 @@ build-linux-ubuntu-i386:
|
|||||||
|
|
||||||
build-linux-ubuntu-arm64:
|
build-linux-ubuntu-arm64:
|
||||||
<<: *build
|
<<: *build
|
||||||
|
only: *releaseable_branches
|
||||||
image: parity/rust-arm64:gitlab-ci
|
image: parity/rust-arm64:gitlab-ci
|
||||||
variables:
|
variables:
|
||||||
CARGO_TARGET: aarch64-unknown-linux-gnu
|
CARGO_TARGET: aarch64-unknown-linux-gnu
|
||||||
@ -129,6 +130,7 @@ build-linux-ubuntu-arm64:
|
|||||||
|
|
||||||
build-linux-ubuntu-armhf:
|
build-linux-ubuntu-armhf:
|
||||||
<<: *build
|
<<: *build
|
||||||
|
only: *releaseable_branches
|
||||||
image: parity/rust-armv7:gitlab-ci
|
image: parity/rust-armv7:gitlab-ci
|
||||||
variables:
|
variables:
|
||||||
CARGO_TARGET: armv7-unknown-linux-gnueabihf
|
CARGO_TARGET: armv7-unknown-linux-gnueabihf
|
||||||
@ -136,26 +138,29 @@ build-linux-ubuntu-armhf:
|
|||||||
- rust-arm
|
- rust-arm
|
||||||
|
|
||||||
build-linux-android-armhf:
|
build-linux-android-armhf:
|
||||||
<<: *build
|
stage: build
|
||||||
image: parity/rust-android:gitlab-ci
|
image: parity/rust-android:gitlab-ci
|
||||||
variables:
|
variables:
|
||||||
CARGO_TARGET: armv7-linux-androideabi
|
CARGO_TARGET: armv7-linux-androideabi
|
||||||
|
script:
|
||||||
|
- scripts/gitlab/build-unix.sh
|
||||||
tags:
|
tags:
|
||||||
- rust-arm
|
- rust-arm
|
||||||
|
|
||||||
build-darwin-macos-x86_64:
|
build-darwin-macos-x86_64:
|
||||||
<<: *build
|
stage: build
|
||||||
variables:
|
variables:
|
||||||
CARGO_TARGET: x86_64-apple-darwin
|
CARGO_TARGET: x86_64-apple-darwin
|
||||||
CC: gcc
|
CC: gcc
|
||||||
CXX: g++
|
CXX: g++
|
||||||
|
script:
|
||||||
|
- scripts/gitlab/build-unix.sh
|
||||||
tags:
|
tags:
|
||||||
- osx
|
- osx
|
||||||
<<: *collect_artifacts
|
<<: *collect_artifacts
|
||||||
|
|
||||||
build-windows-msvc-x86_64:
|
build-windows-msvc-x86_64:
|
||||||
stage: build
|
stage: build
|
||||||
only: *releaseable_branches
|
|
||||||
cache:
|
cache:
|
||||||
key: "%CI_JOB_NAME%"
|
key: "%CI_JOB_NAME%"
|
||||||
paths:
|
paths:
|
||||||
@ -259,7 +264,6 @@ publish-docker-parity-amd64: &publish_docker
|
|||||||
- build-linux-ubuntu-amd64
|
- build-linux-ubuntu-amd64
|
||||||
tags:
|
tags:
|
||||||
- shell
|
- shell
|
||||||
allow_failure: true
|
|
||||||
script:
|
script:
|
||||||
- scripts/gitlab/publish-docker.sh parity
|
- scripts/gitlab/publish-docker.sh parity
|
||||||
|
|
||||||
@ -284,7 +288,6 @@ publish-github-and-s3:
|
|||||||
- scripts/gitlab/push.sh
|
- scripts/gitlab/push.sh
|
||||||
tags:
|
tags:
|
||||||
- shell
|
- shell
|
||||||
allow_failure: true
|
|
||||||
|
|
||||||
|
|
||||||
####stage: docs
|
####stage: docs
|
||||||
|
@ -6,7 +6,7 @@ set -u # treat unset variables as error
|
|||||||
|
|
||||||
rustup default $1
|
rustup default $1
|
||||||
|
|
||||||
if [[ "$CI_COMMIT_REF_NAME" = "beta" || "$CI_COMMIT_REF_NAME" = "stable" ]]; then
|
if [[ "$CI_COMMIT_REF_NAME" = "master" || "$CI_COMMIT_REF_NAME" = "beta" || "$CI_COMMIT_REF_NAME" = "stable" ]]; then
|
||||||
export GIT_COMPARE=$CI_COMMIT_REF_NAME~;
|
export GIT_COMPARE=$CI_COMMIT_REF_NAME~;
|
||||||
else
|
else
|
||||||
export GIT_COMPARE=master;
|
export GIT_COMPARE=master;
|
||||||
|
Loading…
Reference in New Issue
Block a user