Skip to content

dev: v43

dev: v43 #277

Workflow file for this run

name: Devcontainer
# When a pull request is opened that changes the Devcontainer configuration,
# ensure that the container continues to build properly.
on:
pull_request:
paths:
- .devcontainer/devcontainer.json
- .github/workflows/devcontainer.yml
- rust-toolchain
permissions:
contents: read
jobs:
rust-version:
runs-on: ubuntu-latest
container: ghcr.io/linkerd/dev:v43-rust
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- shell: bash
run: |
# Extract current Rust version from the toolchain file.
version_regex='channel = "([0-9]+\.[0-9]+\.[0-9]+)"'
toolchain=$(cat rust-toolchain.toml)
if [[ $toolchain =~ $version_regex ]]; then
tc=${BASH_REMATCH[1]}
else
echo "::error file=rust-toolchain.toml::failed to parse rust-toolchain.toml"
exit 1
fi
dev=$(cargo version | cut -d' ' -f2)
if [ "$dev" != "$tc" ]; then
echo "::error file=rust-toolchain.toml,line=2::rust-toolchain ($tc) does not match devcontainer ($dev)"
exit 1
fi
devcontainer-image:
runs-on: ubuntu-latest
steps:
- uses: linkerd/dev/actions/setup-tools@v42
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- run: just-dev pull-dev-image