Compare commits

...

4 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 02572bdf45 Switch to action-rs/toolchain for Rust installation in CI
Co-authored-by: nitnelave <796633+nitnelave@users.noreply.github.com>
2025-08-21 00:01:39 +00:00
copilot-swe-agent[bot] 30cb4ceae0 Use variable for Rust version in CI workflow
Replace hardcoded "1.85.0" references with RUST_VERSION environment variable for better maintainability. Now the Rust version only needs to be updated in one place.

Co-authored-by: nitnelave <796633+nitnelave@users.noreply.github.com>
2025-08-20 23:58:18 +00:00
copilot-swe-agent[bot] 2e2a67c13b Pin Rust version to 1.85.0 in CI workflows and Docker images
Co-authored-by: nitnelave <796633+nitnelave@users.noreply.github.com>
2025-08-20 23:52:12 +00:00
copilot-swe-agent[bot] 4d8fccb502 Initial plan 2025-08-20 23:43:32 +00:00
5 changed files with 35 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
FROM rust:1.85
FROM rust:1.85.0
ARG USERNAME=lldapdev
# 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
FROM rust:1.85-slim-bookworm
FROM rust:1.85.0-slim-bookworm
# 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"
+31 -2
View File
@@ -8,6 +8,7 @@ on:
env:
CARGO_TERM_COLOR: always
RUST_VERSION: "1.85.0"
jobs:
pre_job:
@@ -34,6 +35,11 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v5.0.0
- name: Install Rust ${{ env.RUST_VERSION }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
override: true
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build --verbose --workspace
@@ -54,6 +60,13 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v5.0.0
- name: Install Rust ${{ env.RUST_VERSION }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
override: true
components: clippy
- uses: Swatinem/rust-cache@v2
- name: Run cargo clippy
@@ -71,6 +84,13 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v5.0.0
- name: Install Rust ${{ env.RUST_VERSION }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
override: true
components: rustfmt
- uses: Swatinem/rust-cache@v2
- name: Run cargo fmt
@@ -90,8 +110,17 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v5.0.0
- name: Install Rust
run: rustup toolchain install nightly --component llvm-tools-preview && rustup component add llvm-tools-preview --toolchain stable-x86_64-unknown-linux-gnu
- name: Install Rust ${{ env.RUST_VERSION }} and nightly
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION }}
override: true
components: llvm-tools-preview
- name: Install nightly toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
components: llvm-tools-preview
- uses: taiki-e/install-action@cargo-llvm-cov
+1
View File
@@ -16,6 +16,7 @@ edition = "2024"
homepage = "https://github.com/lldap/lldap"
license = "GPL-3.0-only"
repository = "https://github.com/lldap/lldap"
rust-version = "1.85.0"
[profile.release]
lto = true
+1 -1
View File
@@ -1,5 +1,5 @@
# Build image
FROM rust:alpine3.21 AS chef
FROM rust:1.85.0-alpine3.21 AS chef
RUN set -x \
# Add user