aboutsummaryrefslogtreecommitdiff
path: root/.github/ci/build-stable.sh
blob: 8012f69239938f0e3365091353943c6de7cadf76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
## on push branch~=gh-readonly-queue/main/.*
## on pull_request

set -euo pipefail

export RUSTUP_HOME=/ci/cache/rustup
export CARGO_HOME=/ci/cache/cargo
export CARGO_TARGET_DIR=/ci/cache/target

# needed for "dumb HTTP" transport support
# used when pointing stm32-metapac to a CI-built one.
export CARGO_NET_GIT_FETCH_WITH_CLI=true

hashtime restore /ci/cache/filetime.json || true
hashtime save /ci/cache/filetime.json

sed -i 's/channel.*/channel = "stable"/g' rust-toolchain.toml

./ci_stable.sh