Skip to content

Commit c0dbdb5

Browse files
authored
Use actions-rs/toolchain action for finding correct nightly (#86)
1 parent e32b838 commit c0dbdb5

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

Diff for: .github/workflows/build.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -124,15 +124,11 @@ jobs:
124124
timeout-minutes: 2
125125
steps:
126126
- uses: actions/checkout@v1
127-
- name: "Find latest Nightly with rustfmt"
128-
id: component
129-
uses: actions-rs/components-nightly@v1
130-
with:
131-
component: rustfmt
132-
- name: "Add a rustup override for rustfmt nightly"
127+
- name: "Use the latest Rust nightly with rustfmt"
133128
uses: actions-rs/toolchain@v1
134129
with:
135-
toolchain: ${{ steps.component.outputs.toolchain }}
130+
toolchain: nightly
131+
profile: minimal
132+
components: rustfmt
136133
override: true
137-
- run: rustup component add rustfmt
138134
- run: cargo fmt -- --check

0 commit comments

Comments
 (0)