Skip to content

Commit b6fa48d

Browse files
amysparkMarge Bot
authored and
Marge Bot
committed
ci: Update images but pin Rust nightly due to broken lints
See: - rust-lang/rust#121362 - rust-lang/rust#121312 - rust-lang/rust#120770 Part-of: <https://gitlab.gnome.org/GNOME/librsvg/-/merge_requests/928>
1 parent c3179b1 commit b6fa48d

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ cargo test - opensuse@x86_64:
151151
# job in the check stage
152152
# - "${RUST_STABLE}"
153153
- "${RUST_MINIMUM}"
154-
- "nightly"
154+
- "${RUST_NIGHTLY}"
155155

156156
cargo test - opensuse@aarch64:
157157
extends:
@@ -228,7 +228,7 @@ cargo test - gnomeos.nightly.@x86_64:
228228
- RUST_VERSION:
229229
- "${RUST_STABLE}"
230230
- "${RUST_MINIMUM}"
231-
- "nightly"
231+
- "${RUST_NIGHTLY}"
232232

233233
cargo test - gnomeos.45@x86_64:
234234
extends:
@@ -245,7 +245,7 @@ cargo test - gnomeos.45@x86_64:
245245
- RUST_VERSION:
246246
- "${RUST_STABLE}"
247247
- "${RUST_MINIMUM}"
248-
- "nightly"
248+
- "${RUST_NIGHTLY}"
249249

250250
fmt:
251251
extends:

ci/container_builds.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ include:
55
variables:
66
# When branching change the suffix to avoid conflicts with images
77
# from the main branch
8-
BASE_TAG: "2024-01-21.0-main"
8+
BASE_TAG: "2024-02-22.2-main"
99
RUST_STABLE: "1.75.0"
1010
RUST_MINIMUM: "1.70.0"
11+
RUST_NIGHTLY: "nightly-2024-02-01"
1112
RUSTUP_VERSION: "1.26.0"
1213

1314
# This bunch of packages are the system's C/C++ compilers, and the indirect dependencies needed
@@ -70,7 +71,7 @@ variables:
7071
bash ci/install-rust.sh --rustup-version ${RUSTUP_VERSION} \
7172
--stable ${RUST_STABLE} \
7273
--minimum ${RUST_MINIMUM} \
73-
--nightly \
74+
--nightly ${RUST_NIGHTLY} \
7475
--arch x86_64-unknown-linux-gnu &&
7576
bash ci/install-rust-tools.sh &&
7677
bash ci/install-grcov.sh &&
@@ -116,7 +117,7 @@ opensuse-container@aarch64:
116117
bash ci/install-rust.sh --rustup-version ${RUSTUP_VERSION} \
117118
--stable ${RUST_STABLE} \
118119
--minimum ${RUST_MINIMUM} \
119-
--nightly \
120+
--nightly ${RUST_NIGHTLY} \
120121
--arch x86_64-unknown-linux-gnu &&
121122
bash ci/install-rust-tools.sh &&
122123
bash ci/install-grcov.sh &&

ci/install-rust.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ source ./ci/env.sh
66

77
export CARGO_HOME='/usr/local/cargo'
88

9-
PARSED=$(getopt --options '' --longoptions 'rustup-version:,stable:,minimum:,nightly,arch:' --name "$0" -- "$@")
9+
PARSED=$(getopt --options '' --longoptions 'rustup-version:,stable:,minimum:,nightly:,arch:' --name "$0" -- "$@")
1010
if [ $? -ne 0 ]; then
1111
echo 'Terminating...' >&2
1212
exit 1
@@ -39,8 +39,8 @@ while true; do
3939
;;
4040

4141
'--nightly')
42-
NIGHTLY=1
43-
shift 1
42+
NIGHTLY=$2
43+
shift 2
4444
;;
4545

4646
'--arch')
@@ -88,5 +88,5 @@ if [ -n "$MINIMUM" ]; then
8888
fi
8989

9090
if [ -n "$NIGHTLY" ]; then
91-
rustup toolchain install nightly
91+
rustup toolchain install $NIGHTLY
9292
fi

0 commit comments

Comments
 (0)