mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Pin nightly used for fmt/clippy
As per https://github.com/serai-dex/serai/issues/116.
This commit is contained in:
1
.github/nightly-version
vendored
Normal file
1
.github/nightly-version
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
nightly-2022-09-01
|
||||||
16
.github/workflows/tests.yml
vendored
16
.github/workflows/tests.yml
vendored
@@ -14,11 +14,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
submodules: "recursive"
|
submodules: "recursive"
|
||||||
|
|
||||||
|
- name: Get nightly version to use
|
||||||
|
id: nightly
|
||||||
|
run: echo "::set-output name=version::$(cat .github/nightly-version)"
|
||||||
|
|
||||||
- name: Build Dependencies
|
- name: Build Dependencies
|
||||||
uses: ./.github/actions/build-dependencies
|
uses: ./.github/actions/build-dependencies
|
||||||
with:
|
with:
|
||||||
# Clippy requires nightly for some reason
|
# Clippy requires nightly due to serai-runtime requiring it
|
||||||
rust-toolchain: nightly
|
rust-toolchain: ${{ steps.nightly.outputs.version }}
|
||||||
rust-components: clippy
|
rust-components: clippy
|
||||||
|
|
||||||
- name: Run Clippy
|
- name: Run Clippy
|
||||||
@@ -42,13 +46,17 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Get nightly version to use
|
||||||
|
id: nightly
|
||||||
|
run: echo "::set-output name=version::$(cat .github/nightly-version)"
|
||||||
|
|
||||||
# Doesn't grab the cache as it's not needed
|
# Doesn't grab the cache as it's not needed
|
||||||
- name: Install rustfmt
|
- name: Install rustfmt
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: nightly
|
toolchain: ${{ steps.nightly.outputs.version }}
|
||||||
profile: minimal
|
profile: minimal
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
|
|
||||||
- name: Run rustfmt
|
- name: Run rustfmt
|
||||||
run: cargo +nightly fmt -- --check
|
run: cargo fmt -- --check
|
||||||
|
|||||||
Reference in New Issue
Block a user