Skip to content

Commit 6d96a53

Browse files
authored
Merge pull request #33743 from def-/pr-beta-nightly-rust
ci: Clean up Rust after beta run
2 parents 1ca7d51 + cad1484 commit 6d96a53

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

ci/nightly/pipeline.template.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ steps:
7878

7979
- id: build-rust-latest-beta
8080
label: "Build with Latest Rust Beta"
81-
command: bin/ci-builder run stable bash -c "curl https://sh.rustup.rs -sSf | sh -s -- -y && source /cargo/env && rustup install beta && rustup run beta cargo build --all-targets"
81+
command: bin/ci-builder run stable ci/test/rust-beta-build.sh
8282
depends_on: []
8383
timeout_in_minutes: 60
8484
agents:

ci/test/rust-beta-build.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright Materialize, Inc. and contributors. All rights reserved.
4+
#
5+
# Use of this software is governed by the Business Source License
6+
# included in the LICENSE file at the root of this repository.
7+
#
8+
# As of the Change Date specified in that file, in accordance with
9+
# the Business Source License, use of this software will be governed
10+
# by the Apache License, Version 2.0.
11+
12+
set -euo pipefail
13+
14+
curl https://sh.rustup.rs -sSf | sh -s -- -y
15+
# shellcheck source=/dev/null
16+
source /cargo/env
17+
trap "rustup self uninstall -y" SIGTERM SIGINT EXIT
18+
rustup install beta
19+
rustup run beta cargo build --all-targets

0 commit comments

Comments
 (0)