Skip to content

Commit

Permalink
ci: use rust-toolchain version as stable version
Browse files Browse the repository at this point in the history
  • Loading branch information
sinato committed Sep 18, 2020
1 parent efeb2f2 commit 587b59f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Install LLVM
Expand Down Expand Up @@ -48,7 +47,16 @@ jobs:
with:
submodules: true

- name: Install toolchain
if: ${{ matrix.config.toolchain == 'stable' }}
uses: actions-rs/toolchain@v1
with:
profile: minimal
override: true
components: rustfmt

- name: Install ${{ matrix.config.toolchain }} toolchain
if: ${{ matrix.config.toolchain != 'stable' }}
uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand All @@ -73,7 +81,7 @@ jobs:
crate: mdbook
version: latest
use-tool-cache: true

- name: mdbook test
if: ${{ matrix.config.os == 'ubuntu-latest' && matrix.config.toolchain == 'stable' }}
run: mdbook test book -L target/debug/deps
Expand All @@ -98,7 +106,6 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: clippy, rustfmt

Expand Down Expand Up @@ -128,7 +135,6 @@ jobs:
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install LLVM
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Install LLVM
Expand Down

0 comments on commit 587b59f

Please sign in to comment.