mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-12-22 08:07:07 +00:00
ci: Explicitly select stable Rust version
And for now we stay at 1.46.0 because 1.47.0 has a bug that prevents clippy from succeeding.
This commit is contained in:
parent
dd4dd364da
commit
9c141a2fbf
3 changed files with 7 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
||||||
# to build the images used by the ci.
|
# to build the images used by the ci.
|
||||||
#
|
#
|
||||||
# Here is how to properly update thoses images:
|
# Here is how to properly update thoses images:
|
||||||
# - new Rust stable version: update GST_RS_IMG_TAG
|
# - new Rust stable version: update GST_RS_IMG_TAG and update Rust version
|
||||||
# - add dependencies: update FDO_DISTRIBUTION_PACKAGES and update GST_RS_IMG_TAG
|
# - add dependencies: update FDO_DISTRIBUTION_PACKAGES and update GST_RS_IMG_TAG
|
||||||
# - update GStreamer version: update the tag in ci/install-gst.sh and update GST_RS_IMG_TAG
|
# - update GStreamer version: update the tag in ci/install-gst.sh and update GST_RS_IMG_TAG
|
||||||
#
|
#
|
||||||
|
@ -61,7 +61,8 @@ stages:
|
||||||
.debian:10-stable:
|
.debian:10-stable:
|
||||||
extends: .debian:10
|
extends: .debian:10
|
||||||
variables:
|
variables:
|
||||||
RUST_VERSION: "stable"
|
RUST_VERSION: "1.46.0"
|
||||||
|
RUST_IMAGE_FULL: "1"
|
||||||
|
|
||||||
.debian:10-1-41:
|
.debian:10-1-41:
|
||||||
extends: .debian:10
|
extends: .debian:10
|
||||||
|
@ -87,7 +88,7 @@ stages:
|
||||||
stage: container-final
|
stage: container-final
|
||||||
variables:
|
variables:
|
||||||
FDO_BASE_IMAGE: '$CI_REGISTRY_IMAGE/debian/10:base-$GST_RS_IMG_TAG'
|
FDO_BASE_IMAGE: '$CI_REGISTRY_IMAGE/debian/10:base-$GST_RS_IMG_TAG'
|
||||||
FDO_DISTRIBUTION_EXEC: 'bash ci/install-rust.sh $RUST_VERSION'
|
FDO_DISTRIBUTION_EXEC: 'bash ci/install-rust.sh $RUST_VERSION $RUST_IMAGE_FULL'
|
||||||
|
|
||||||
build-base:
|
build-base:
|
||||||
extends:
|
extends:
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
variables:
|
variables:
|
||||||
GST_RS_IMG_TAG: '2020-09-09.0'
|
GST_RS_IMG_TAG: '2020-10-31.0'
|
||||||
|
|
|
@ -5,6 +5,7 @@ export CARGO_HOME='/usr/local/cargo'
|
||||||
|
|
||||||
RUSTUP_VERSION=1.22.1
|
RUSTUP_VERSION=1.22.1
|
||||||
RUST_VERSION=$1
|
RUST_VERSION=$1
|
||||||
|
RUST_IMAGE_FULL=$2
|
||||||
RUST_ARCH="x86_64-unknown-linux-gnu"
|
RUST_ARCH="x86_64-unknown-linux-gnu"
|
||||||
|
|
||||||
RUSTUP_URL=https://static.rust-lang.org/rustup/archive/$RUSTUP_VERSION/$RUST_ARCH/rustup-init
|
RUSTUP_URL=https://static.rust-lang.org/rustup/archive/$RUSTUP_VERSION/$RUST_ARCH/rustup-init
|
||||||
|
@ -19,7 +20,7 @@ rustup --version
|
||||||
cargo --version
|
cargo --version
|
||||||
rustc --version
|
rustc --version
|
||||||
|
|
||||||
if [ "$RUST_VERSION" = "stable" ]; then
|
if [ "$RUST_IMAGE_FULL" = "1" ]; then
|
||||||
rustup component add clippy-preview
|
rustup component add clippy-preview
|
||||||
rustup component add rustfmt
|
rustup component add rustfmt
|
||||||
cargo install --force cargo-deny
|
cargo install --force cargo-deny
|
||||||
|
|
Loading…
Reference in a new issue