Pin Rust version to 1.85.0 in CI workflows and Docker images

Co-authored-by: nitnelave <796633+nitnelave@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-20 23:52:12 +00:00
parent 4d8fccb502
commit 2e2a67c13b
5 changed files with 23 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
FROM rust:1.85 FROM rust:1.85.0
ARG USERNAME=lldapdev ARG USERNAME=lldapdev
# We need to keep the user as 1001 to match the GitHub runner's UID. # We need to keep the user as 1001 to match the GitHub runner's UID.
+1 -1
View File
@@ -1,5 +1,5 @@
# Keep tracking base image # Keep tracking base image
FROM rust:1.85-slim-bookworm FROM rust:1.85.0-slim-bookworm
# Set needed env path # Set needed env path
ENV PATH="/opt/armv7l-linux-musleabihf-cross/:/opt/armv7l-linux-musleabihf-cross/bin/:/opt/aarch64-linux-musl-cross/:/opt/aarch64-linux-musl-cross/bin/:/opt/x86_64-linux-musl-cross/:/opt/x86_64-linux-musl-cross/bin/:$PATH" ENV PATH="/opt/armv7l-linux-musleabihf-cross/:/opt/armv7l-linux-musleabihf-cross/bin/:/opt/aarch64-linux-musl-cross/:/opt/aarch64-linux-musl-cross/bin/:/opt/x86_64-linux-musl-cross/:/opt/x86_64-linux-musl-cross/bin/:$PATH"
+19 -2
View File
@@ -34,6 +34,10 @@ jobs:
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v5.0.0 uses: actions/checkout@v5.0.0
- name: Install Rust 1.85.0
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.85.0
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
- name: Build - name: Build
run: cargo build --verbose --workspace run: cargo build --verbose --workspace
@@ -54,6 +58,11 @@ jobs:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v5.0.0 uses: actions/checkout@v5.0.0
- name: Install Rust 1.85.0
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.85.0
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
- name: Run cargo clippy - name: Run cargo clippy
@@ -71,6 +80,11 @@ jobs:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v5.0.0 uses: actions/checkout@v5.0.0
- name: Install Rust 1.85.0
uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.85.0
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
- name: Run cargo fmt - name: Run cargo fmt
@@ -90,8 +104,11 @@ jobs:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v5.0.0 uses: actions/checkout@v5.0.0
- name: Install Rust - name: Install Rust 1.85.0 and nightly
run: rustup toolchain install nightly --component llvm-tools-preview && rustup component add llvm-tools-preview --toolchain stable-x86_64-unknown-linux-gnu run: |
rustup toolchain install 1.85.0 --component llvm-tools-preview
rustup toolchain install nightly --component llvm-tools-preview
rustup default 1.85.0
- uses: taiki-e/install-action@cargo-llvm-cov - uses: taiki-e/install-action@cargo-llvm-cov
+1
View File
@@ -16,6 +16,7 @@ edition = "2024"
homepage = "https://github.com/lldap/lldap" homepage = "https://github.com/lldap/lldap"
license = "GPL-3.0-only" license = "GPL-3.0-only"
repository = "https://github.com/lldap/lldap" repository = "https://github.com/lldap/lldap"
rust-version = "1.85.0"
[profile.release] [profile.release]
lto = true lto = true
+1 -1
View File
@@ -1,5 +1,5 @@
# Build image # Build image
FROM rust:alpine3.21 AS chef FROM rust:1.85.0-alpine3.21 AS chef
RUN set -x \ RUN set -x \
# Add user # Add user