Skip to content

Commit

Permalink
chore: add rust toolchain configuration (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi authored Dec 8, 2024
1 parent c55697a commit 8e98562
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ jobs:
with:
filter: tree:0
fetch-depth: 0
- uses: dtolnay/rust-toolchain@stable
with:
target: ${{ matrix.platform.target }}
- run: |
rustup target add ${{ matrix.platform.target }}
- uses: Swatinem/rust-cache@82a92a6e8fbeee089604da2575dc567ae9ddeaab # v2.7.5
with:
key: ${{ matrix.profile }}-${{ matrix.platform.target }}
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/rustfmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,5 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: dtolnay/rust-toolchain@315e265cd78dad1e1dcf3a5074f6d6c47029d5aa # master
with:
toolchain: stable
components: rustfmt
- name: Run rustfmt
run: cargo fmt --all --check -- --color=always
4 changes: 4 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[toolchain]
channel = "stable"
components = ["rustfmt", "clippy"]
profile = "minimal"

0 comments on commit 8e98562

Please sign in to comment.