Skip to content

Commit 6ceeff5

Browse files
authored
Merge branch 'main' into feature/update-vscode-extensions
2 parents 5833091 + 5c919db commit 6ceeff5

5 files changed

Lines changed: 27 additions & 28 deletions

File tree

.devcontainer/cpp/test/testsuite.bats

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bats
22

3+
bats_require_minimum_version 1.5.0
4+
35
setup_file() {
46
# Installing the Windows SDK/CRT takes a long time.
57
# When still valid, use the installation from cache.

.devcontainer/rust/Dockerfile

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
FROM ubuntu:24.04@sha256:3f85b7caad41a95462cf5b787d8a04604c8262cdcdf9a472b8c52ef83375fe15
22

33
ARG BATS_VERSION=1.10.0
4+
ARG CARGO_BINSTALL_VERSION=1.6.8
45
ARG RUST_VERSION=1.78.0
5-
ARG RUSTUP_INIT_VERSION=1.26.0
66

77
ARG DEBIAN_FRONTEND=noninteractive
88

@@ -23,17 +23,12 @@ RUN wget -qO /usr/local/share/ca-certificates/Cisco_Umbrella_Root_CA.crt https:/
2323
&& update-ca-certificates
2424

2525
# Install rust
26-
ENV RUSTUP_HOME=/usr/local/rustup \
27-
CARGO_HOME=/usr/local/cargo \
26+
ENV CARGO_HOME=/usr/local/cargo \
2827
PATH=/usr/local/cargo/bin:"$PATH"
29-
RUN declare -A RUSTUP_SHA \
30-
RUSTUP_SHA["x86_64"]="0b2f6c8f85a3d02fde2efc0ced4657869d73fccfce59defb4e8d29233116e6db" \
31-
RUSTUP_SHA["aarch64"]="673e336c81c65e6b16dcdede33f4cc9ed0f08bde1dbe7a935f113605292dc800" \
32-
&& wget -qO /tmp/rustup-init "https://static.rust-lang.org/rustup/archive/${RUSTUP_INIT_VERSION}/$(uname -m)-unknown-linux-gnu/rustup-init" \
33-
&& echo "${RUSTUP_SHA[$(uname -m)]} /tmp/rustup-init" | sha256sum -c - \
34-
&& chmod +x /tmp/rustup-init \
35-
&& /tmp/rustup-init -y --no-modify-path --default-toolchain=${RUST_VERSION} --component llvm-tools --target thumbv7em-none-eabi \
36-
&& rm -rf /tmp/rustup-init
28+
RUN rustup set profile minimal \
29+
&& rustup default ${RUST_VERSION} \
30+
&& rustup component add clippy llvm-tools rustfmt \
31+
&& rustup target add thumbv7em-none-eabi
3732

3833
# Install bats
3934
RUN batstmp="$(mktemp -d /tmp/bats-core-${BATS_VERSION}.XXXX)" \
@@ -46,15 +41,8 @@ RUN batstmp="$(mktemp -d /tmp/bats-core-${BATS_VERSION}.XXXX)" \
4641
# Update all tool alternatives to the correct version
4742
RUN update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-13 20
4843

49-
# hadolint ignore=DL3008
50-
RUN apt-get update \
51-
&& apt-get install -y --no-install-recommends libudev-dev \
52-
&& cargo install cargo-binutils \
53-
&& cargo install cargo-mutants \
54-
&& cargo install flip-link \
55-
&& cargo install probe-rs --features cli \
56-
&& rm -rf "$CARGO_HOME/registry" \
57-
&& apt-get purge -y libudev-dev \
58-
&& apt-get autoremove -y \
59-
&& apt-get clean \
60-
&& rm -rf /var/lib/apt/lists/*
44+
# Install additional rust tools
45+
RUN wget -qO - "https://github.com/cargo-bins/cargo-binstall/releases/download/v${CARGO_BINSTALL_VERSION}/cargo-binstall-$(uname -m)-unknown-linux-gnu.tgz" | tar xz -C "/usr/bin" \
46+
&& cargo-binstall -y --locked cargo-binutils@0.3.6 cargo-mutants@24.5.0 flip-link@0.1.8 \
47+
# cargo-binstall can't (yet) install probe-rs-tools for aarch64, fall-back to script installation
48+
&& wget -qO - https://github.com/probe-rs/probe-rs/releases/download/v0.24.0/probe-rs-tools-installer.sh | sh

.devcontainer/rust/apt-requirements-base.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"git": "1:2.43.0-1ubuntu7",
55
"gnupg2": "2.4.4-2ubuntu17",
66
"libc6-dev": "2.39-0ubuntu8.1",
7-
"pkg-config": "1.8.1-2build1",
8-
"wget": "1.21.4-1ubuntu4"
7+
"rustup": "1.26.0-5build1",
8+
"wget": "1.21.4-1ubuntu4",
9+
"xz-utils": "5.6.1+really5.4.5-1"
910
}

.devcontainer/rust/test/testsuite.bats

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env bats
22

3+
bats_require_minimum_version 1.5.0
4+
35
setup() {
46
load '/usr/local/bats-support/load'
57
load '/usr/local/bats-assert/load'

.github/workflows/issue-creation-tool-versions.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
fi
2929
new_issue_url=$(gh issue create \
3030
--title "$TITLE" \
31-
--assignee "$ASSIGNEES" \
3231
--label "$LABELS" \
3332
--body "$BODY")
3433
if [[ $PINNED == true ]]; then
@@ -38,12 +37,11 @@ jobs:
3837
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3938
GH_REPO: ${{ github.repository }}
4039
TITLE: Evaluate tool versions
41-
ASSIGNEES: awesome-embedded-projects
4240
LABELS: scheduled,tool-versions
4341
BODY: |
4442
## Description
4543
46-
This issue is automatically created as a gentle reminder to evaluate and update the tool versions for the container image built from this repository.
44+
This issue is automatically created as a gentle reminder to evaluate and update the tool versions for the container images built from this repository.
4745
The checklist below describes the steps that should be taken, and checked-off before this issue can be closed.
4846
Any decisions about purposefully not updating a tool to a newer version should be logged as issue comment.
4947
The general philosophy is to always include the latest tool versions and the latest [LTS](https://ubuntu.com/about/release-cycle) version of Ubuntu.
@@ -53,12 +51,20 @@ jobs:
5351
5452
## Checklist
5553
54+
### amp-devcontainer-cpp
55+
5656
- [ ] The [ARM GNU](https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads) toolchain is up to date and matches with the GCC version
5757
- [ ] The [Clang toolchain](https://apt.llvm.org/) is up to date
5858
- [ ] The [Docker cli](https://download.docker.com/linux/static/stable/) is up to date
5959
- [ ] [bats-core](https://github.com/bats-core/bats-core), [bats-support](https://github.com/bats-core/bats-support) and [bats-assert](https://github.com/bats-core/bats-assert) are up to date
6060
- [ ] [Mull](https://github.com/mull-project/mull) is up to date and compatible with the currently installed Clang version
6161
- [ ] [include-what-you-use](https://github.com/include-what-you-use/include-what-you-use) is up to date and compatible with the currently installed Clang version
6262
- [ ] [xwin](https://github.com/Jake-Shadle/xwin) is up to date
63+
64+
### amp-devcontainer-rust
65+
66+
- [ ] The [rust](https://rust-lang.org/) toolchain is up to date
67+
- [ ] [rust-binstall](https://github.com/cargo-bins/cargo-binstall/releases) is up to date
68+
- [ ] [bats-core](https://github.com/bats-core/bats-core), [bats-support](https://github.com/bats-core/bats-support) and [bats-assert](https://github.com/bats-core/bats-assert) are up to date
6369
PINNED: true
6470
CLOSE_PREVIOUS: true

0 commit comments

Comments
 (0)