mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-10-24 12:54:05 +00:00
Pin the Rust toolchain for CI build jobs and let dependabot update it (#5938)
This commit is contained in:
13 files changed
+87
-53
No files matched your search
@@ -1,3 +1,4 @@
|
||||
# Copyright 2025, 2026 Element Creations Ltd.
|
||||
# Copyright 2025 New Vector Ltd.
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
@@ -123,9 +124,8 @@ jobs:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install Rust toolchain
|
||||
# Install the minimal toolchain, which includes rustc, rustdoc, and cargo.
|
||||
run: |
|
||||
rustup toolchain install stable --profile minimal
|
||||
rustup toolchain install
|
||||
rustup target add ${{ matrix.target }}
|
||||
|
||||
- name: Setup sccache
|
||||
|
||||
@@ -153,15 +153,12 @@ jobs:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install Rust toolchain
|
||||
# Install the minimal toolchain, which includes rustc, rustdoc, and cargo.
|
||||
# Then install rustfmt for `cargo fmt`.
|
||||
#
|
||||
# --override sets this as the default rust toolchain version in this directory.
|
||||
# rustfmt runs on nightly because .rustfmt.toml uses nightly-only options.
|
||||
run: |
|
||||
rustup toolchain install nightly --profile minimal --component rustfmt --override
|
||||
rustup toolchain install nightly --profile minimal --component rustfmt
|
||||
|
||||
- name: Check style
|
||||
run: cargo fmt --all -- --check
|
||||
run: cargo +nightly fmt --all -- --check
|
||||
|
||||
cargo-deny:
|
||||
name: Run `cargo deny` checks
|
||||
@@ -182,8 +179,6 @@ jobs:
|
||||
|
||||
- name: Run `cargo-deny`
|
||||
uses: EmbarkStudios/cargo-deny-action@3c6349835b2b7b196a839186cb8b78e02f7b5f25 # v2.1.1
|
||||
with:
|
||||
rust-version: stable
|
||||
|
||||
check-schema:
|
||||
name: Check schema
|
||||
@@ -200,7 +195,7 @@ jobs:
|
||||
|
||||
- name: Install Rust toolchain
|
||||
run: |
|
||||
rustup toolchain install stable
|
||||
rustup toolchain install
|
||||
|
||||
- name: Setup sccache
|
||||
uses: mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10
|
||||
@@ -241,11 +236,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install Rust toolchain
|
||||
# Install the minimal toolchain with clippy, pinned to a version kept in
|
||||
# sync with Dockerfile.
|
||||
#
|
||||
# --override sets this as the default rust toolchain version in this directory.
|
||||
run: rustup toolchain install 1.96.0 --profile minimal --component clippy --override
|
||||
run: rustup toolchain install
|
||||
|
||||
- uses: ./.github/actions/build-policies
|
||||
|
||||
@@ -270,8 +261,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install Rust toolchain
|
||||
# Install the minimal toolchain, which includes rustc, rustdoc, and cargo.
|
||||
run: rustup toolchain install stable --profile minimal
|
||||
run: rustup toolchain install
|
||||
|
||||
- name: Install nextest
|
||||
uses: taiki-e/install-action@b6ff580856c41316412a0b9b60540fbc6f8c82cc # v2
|
||||
@@ -293,7 +283,7 @@ jobs:
|
||||
path: nextest-archive.tar.zst
|
||||
|
||||
test:
|
||||
name: Run test suite with Rust stable
|
||||
name: Run test suite
|
||||
needs: [rustfmt, opa-lint, compile-test-artifacts]
|
||||
runs-on: ubuntu-24.04
|
||||
|
||||
@@ -326,8 +316,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install Rust toolchain
|
||||
# Install the minimal toolchain, which includes rustc, rustdoc, and cargo.
|
||||
run: rustup toolchain install stable --profile minimal
|
||||
run: rustup toolchain install
|
||||
|
||||
- name: Install nextest
|
||||
uses: taiki-e/install-action@b6ff580856c41316412a0b9b60540fbc6f8c82cc # v2
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# Copyright 2025, 2026 Element Creations Ltd.
|
||||
# Copyright 2025 New Vector Ltd.
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
@@ -107,11 +108,11 @@ jobs:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install Rust toolchain
|
||||
# Install the minimal toolchain, which includes rustc, rustdoc, and cargo.
|
||||
#
|
||||
# llvm-tools-preview installs some llvm tools, which are needed for `grcov` below.
|
||||
# See https://github.com/rust-lang/rust/issues/85658 for stability tracking issue.
|
||||
run: rustup toolchain install stable --profile minimal --component llvm-tools-preview
|
||||
run: |
|
||||
rustup toolchain install
|
||||
rustup component add llvm-tools-preview
|
||||
|
||||
- name: Setup sccache
|
||||
uses: mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# Copyright 2025, 2026 Element Creations Ltd.
|
||||
# Copyright 2025 New Vector Ltd.
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
@@ -30,8 +31,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install Rust toolchain
|
||||
# Install the minimal toolchain, which includes rustc, rustdoc, and cargo
|
||||
run: rustup toolchain install stable --profile minimal
|
||||
run: rustup toolchain install
|
||||
|
||||
- name: Setup sccache
|
||||
uses: mozilla-actions/sccache-action@9e7fa8a12102821edf02ca5dbea1acd0f89a2696 # v0.0.10
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# Copyright 2025, 2026 Element Creations Ltd.
|
||||
# Copyright 2025 New Vector Ltd.
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
@@ -39,8 +40,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install Rust toolchain
|
||||
# Only the minimal profile is required here to run `cargo metadata`
|
||||
run: rustup toolchain install stable --profile minimal
|
||||
run: rustup toolchain install
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v6.0.9
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# Copyright 2025, 2026 Element Creations Ltd.
|
||||
# Copyright 2025 New Vector Ltd.
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
@@ -38,8 +39,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install Rust toolchain
|
||||
# Only the minimal profile is required here to run `cargo`
|
||||
run: rustup toolchain install stable --profile minimal
|
||||
run: rustup toolchain install
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v6.0.9
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
# Copyright 2025, 2026 Element Creations Ltd.
|
||||
# Copyright 2025 New Vector Ltd.
|
||||
#
|
||||
# SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
||||
@@ -35,8 +36,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install Rust toolchain
|
||||
# Only the minimal profile is required here to run `cargo metadata`
|
||||
run: rustup toolchain install stable --profile minimal
|
||||
run: rustup toolchain install
|
||||
|
||||
- name: Set the crates version
|
||||
env:
|
||||
|
||||
Reference in new issue
Block a user