github: pin the CI rust version to 1.85.0

This commit is contained in:
Valentin Tolmer
2025-08-21 01:38:07 +02:00
committed by nitnelave
parent cd2694d7dc
commit 7438fe92cf
+22 -16
View File
@@ -8,6 +8,7 @@ on:
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
MSRV: 1.85.0
jobs: jobs:
pre_job: pre_job:
@@ -34,13 +35,18 @@ jobs:
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v5.0.0 uses: actions/checkout@v5.0.0
- name: Install Rust
id: toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: "${{ env.MSRV }}"
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
- name: Build - name: Build
run: cargo build --verbose --workspace run: cargo build --verbose --workspace
- name: Run tests - name: Run tests
run: cargo test --verbose --workspace run: cargo +${{steps.toolchain.outputs.name}} test --verbose --workspace
- name: Generate GraphQL schema - name: Generate GraphQL schema
run: cargo run -- export_graphql_schema -o generated_schema.graphql run: cargo +${{steps.toolchain.outputs.name}} run -- export_graphql_schema -o generated_schema.graphql
- name: Check schema - name: Check schema
run: diff schema.graphql generated_schema.graphql || (echo "The schema file is out of date. Please run `./export_schema.sh`" && false) run: diff schema.graphql generated_schema.graphql || (echo "The schema file is out of date. Please run `./export_schema.sh`" && false)
@@ -53,14 +59,14 @@ jobs:
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v5.0.0 uses: actions/checkout@v5.0.0
- name: Install Rust
- uses: Swatinem/rust-cache@v2 id: toolchain
uses: dtolnay/rust-toolchain@master
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with: with:
command: clippy toolchain: "${{ env.MSRV }}"
args: --tests --all -- -D warnings components: clippy
- uses: Swatinem/rust-cache@v2
- run: cargo +${{steps.toolchain.outputs.name}} clippy --tests --workspace -- -D warnings
format: format:
name: cargo fmt name: cargo fmt
@@ -70,14 +76,14 @@ jobs:
steps: steps:
- name: Checkout sources - name: Checkout sources
uses: actions/checkout@v5.0.0 uses: actions/checkout@v5.0.0
- name: Install Rust
- uses: Swatinem/rust-cache@v2 id: toolchain
uses: dtolnay/rust-toolchain@master
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with: with:
command: fmt toolchain: "${{ env.MSRV }}"
args: --all -- --check components: rustfmt
- uses: Swatinem/rust-cache@v2
- run: cargo +${{steps.toolchain.outputs.name}} fmt --check --all
coverage: coverage:
name: Code coverage name: Code coverage