mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Merge branch 'post-05' into post-06
This commit is contained in:
12
.github/workflows/build-code.yml
vendored
12
.github/workflows/build-code.yml
vendored
@@ -86,15 +86,11 @@ jobs:
|
|||||||
timeout-minutes: 2
|
timeout-minutes: 2
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: "Find latest Nightly with rustfmt"
|
- name: "Use the latest Rust nightly with rustfmt"
|
||||||
id: component
|
|
||||||
uses: actions-rs/components-nightly@v1
|
|
||||||
with:
|
|
||||||
component: rustfmt
|
|
||||||
- name: "Add a rustup override for rustfmt nightly"
|
|
||||||
uses: actions-rs/toolchain@v1
|
uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: ${{ steps.component.outputs.toolchain }}
|
toolchain: nightly
|
||||||
|
profile: minimal
|
||||||
|
components: rustfmt
|
||||||
override: true
|
override: true
|
||||||
- run: rustup component add rustfmt
|
|
||||||
- run: cargo fmt -- --check
|
- run: cargo fmt -- --check
|
||||||
|
|||||||
Reference in New Issue
Block a user