Skip to content

Commit

Permalink
Use dtolnay/rust-toolchain for GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 committed Jun 27, 2023
1 parent 0ab27c6 commit ec5c34e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 58 deletions.
48 changes: 8 additions & 40 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,12 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- # FIXME: Switch back when actions-rs/toolchain#{209,220,222} is merged
uses: r3-os/actions-rust-toolchain@a862b6623c178b43a3135516442a5f72fb5c1877
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: nightly
override: true
components: rustfmt

- # FIXME: Switch back when actions-rs/cargo#217 gets merged
uses: r3-os/actions-rust-cargo@fb222fe18dc90e381546d012f9e3d6f353f0f627
with:
command: fmt
args: --all -- --check
- run: cargo fmt --all -- --check

docs_and_spell_check:
name: Docs and Spell Check
Expand All @@ -48,34 +41,22 @@ jobs:
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v3
- # FIXME: Switch back when actions-rs/toolchain#{209,220,222} is merged
uses: r3-os/actions-rust-toolchain@a862b6623c178b43a3135516442a5f72fb5c1877
with:
profile: minimal
toolchain: stable
override: true
- uses: dtolnay/rust-toolchain@stable

- name: Check spelling
uses: crate-ci/typos@master

- # FIXME: Switch back when actions-rs/cargo#217 gets merged
uses: r3-os/actions-rust-cargo@fb222fe18dc90e381546d012f9e3d6f353f0f627
with:
command: doc
args: --no-deps
- run: cargo doc --no-deps

clippy:
name: Clippy
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- # FIXME: Switch back when actions-rs/toolchain#{209,220,222} is merged
uses: r3-os/actions-rust-toolchain@a862b6623c178b43a3135516442a5f72fb5c1877
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: nightly
override: true
components: clippy

- # FIXME: Switch back when actions-rs/cargo#217 gets merged
Expand All @@ -90,12 +71,9 @@ jobs:
timeout-minutes: 20
steps:
- uses: actions/checkout@v3
- # FIXME: Switch back when actions-rs/toolchain#{209,220,222} is merged
uses: r3-os/actions-rust-toolchain@a862b6623c178b43a3135516442a5f72fb5c1877
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: nightly
override: true
components: llvm-tools-preview

- uses: taiki-e/install-action@cargo-llvm-cov
Expand All @@ -115,12 +93,7 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- # FIXME: Switch back when actions-rs/toolchain#{209,220,222} is merged
uses: r3-os/actions-rust-toolchain@a862b6623c178b43a3135516442a5f72fb5c1877
with:
profile: minimal
toolchain: stable
override: true
- uses: dtolnay/rust-toolchain@stable

- uses: taiki-e/install-action@nextest
- name: 'Build and test'
Expand All @@ -138,12 +111,7 @@ jobs:
run: git config --global core.symlinks true

- uses: actions/checkout@v3
- # FIXME: Switch back when actions-rs/toolchain#{209,220,222} is merged
uses: r3-os/actions-rust-toolchain@a862b6623c178b43a3135516442a5f72fb5c1877
with:
profile: minimal
toolchain: stable
override: true
- uses: dtolnay/rust-toolchain@stable

- uses: taiki-e/install-action@nextest
- name: 'Build and test'
Expand Down
21 changes: 3 additions & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@ jobs:
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- # FIXME: Switch back when actions-rs/toolchain#{209,220,222} is merged
uses: r3-os/actions-rust-toolchain@a862b6623c178b43a3135516442a5f72fb5c1877
with:
profile: minimal
toolchain: stable
override: true
- uses: dtolnay/rust-toolchain@stable

- uses: taiki-e/install-action@nextest
- name: 'Build and test'
Expand All @@ -45,12 +40,7 @@ jobs:
run: git config --global core.symlinks true

- uses: actions/checkout@v3
- # FIXME: Switch back when actions-rs/toolchain#{209,220,222} is merged
uses: r3-os/actions-rust-toolchain@a862b6623c178b43a3135516442a5f72fb5c1877
with:
profile: minimal
toolchain: stable
override: true
- uses: dtolnay/rust-toolchain@stable

- uses: taiki-e/install-action@nextest
- name: 'Build and test'
Expand All @@ -71,12 +61,7 @@ jobs:
timeout-minutes: 25
steps:
- uses: actions/checkout@v3
- # FIXME: Switch back when actions-rs/toolchain#{209,220,222} is merged
uses: r3-os/actions-rust-toolchain@a862b6623c178b43a3135516442a5f72fb5c1877
with:
profile: minimal
toolchain: stable
override: true
- uses: dtolnay/rust-toolchain@stable

- name: workspaces Cache
id: workspaces_cache
Expand Down

0 comments on commit ec5c34e

Please sign in to comment.