Skip to content

Commit e0a5c03

Browse files
authored
Update Debian image used in CI from buster to bookworm (#1093)
* Update Debian image used in CI from buster to bookworm * Try not installing pip * Use venv * Don't ask, just install
1 parent cdacf65 commit e0a5c03

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.taskcluster.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ tasks:
3737
workerType: ci
3838
payload:
3939
maxRunTime: 3600
40-
image: "rust:buster"
40+
image: "rust:bookworm"
4141
command:
4242
- "/bin/bash"
4343
- "-cx"
44-
- "curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py &&
44+
- "apt update && apt install -y python3-full &&
4545
rustup component add clippy rustfmt &&
4646
rustup toolchain install nightly &&
4747
curl -L https://github.com/est31/cargo-udeps/releases/download/v0.1.35/cargo-udeps-v0.1.35-x86_64-unknown-linux-gnu.tar.gz | tar xz -C /usr/local/cargo/bin --strip-components 2 &&
@@ -50,6 +50,8 @@ tasks:
5050
cd rust-code-analysis &&
5151
git -c advice.detachedHead=false checkout ${head_rev} &&
5252
git submodule update --init &&
53+
python3 -m venv myenv &&
54+
. myenv/bin/activate &&
5355
pip3 install --quiet pre-commit &&
5456
pre-commit run -a --show-diff-on-failure &&
5557
pre-commit run --show-diff-on-failure -c .pre-commit-audit-config.yaml &&
@@ -69,7 +71,7 @@ tasks:
6971
workerType: ci
7072
payload:
7173
maxRunTime: 3600
72-
image: "rust:buster"
74+
image: "rust:bookworm"
7375
command:
7476
- "/bin/bash"
7577
- "-cx"
@@ -99,7 +101,7 @@ tasks:
99101
workerType: ci
100102
payload:
101103
maxRunTime: 3600
102-
image: "rust:buster"
104+
image: "rust:bookworm"
103105
env:
104106
CODECOV_TOKEN: 4df01912-087e-489a-be28-25aa911cb9d2
105107
CARGO_INCREMENTAL: "0"

0 commit comments

Comments
 (0)