Skip to content

Commit

Permalink
Pin the CI/CD Rust toolchain to latest stable
Browse files Browse the repository at this point in the history
A frequent source of CI failures (here, but mostly elsewhere) is not
pinning your compiler version. As new versions are released, new lints
and errors are added, making a project that used to build without
errors, now fail simply because there's a new release.

Now, we can, and SHOULD frequently upgrade our toolchain, but it should
still be pinned, so that we can do it on our terms.

Closes #36.
  • Loading branch information
Notgnoshi committed Jan 27, 2024
1 parent 36b7808 commit c202771
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI

on:
push:
push:
pull_request:
types: [opened, synchronize, reopened]

Expand All @@ -19,16 +19,16 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.75.0
profile: minimal
override: true
components: rustfmt

- name: Setup cache
uses: Swatinem/rust-cache@v2

Expand All @@ -37,23 +37,23 @@ jobs:
with:
command: fmt
args: --check

lint:
name: Lint
runs-on: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.75.0
profile: minimal
override: true
components: clippy

- name: Setup cache
uses: Swatinem/rust-cache@v2

Expand All @@ -69,15 +69,15 @@ jobs:

steps:
- name: Checkout sources
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.75.0
profile: minimal
override: true

- name: Setup cache
uses: Swatinem/rust-cache@v2

Expand All @@ -91,7 +91,7 @@ jobs:
with:
command: tarpaulin
args: --release --all-features --engine llvm --out xml

- name: Upload to codecov.io
uses: codecov/codecov-action@v2
with:
Expand Down

0 comments on commit c202771

Please sign in to comment.