Skip to content

Commit

Permalink
Fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicoh committed Dec 26, 2024
1 parent 80482e3 commit 0cdff54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,8 @@ jobs:
- name: Checkout sources
uses: actions/checkout@v3

- name: Setup rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable

- name: Publish
run: cargo publish --all-features --token ${{ secrets.CARGO_TOKEN }}
11 changes: 3 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ jobs:
uses: actions/checkout@v3

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
uses: dtolnay/rust-toolchain@stable

- name: Run cargo check
run: cargo check --all-features
Expand All @@ -40,9 +38,7 @@ jobs:
uses: actions/checkout@v3

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
uses: dtolnay/rust-toolchain@stable

- name: Use cache
uses: Swatinem/rust-cache@v2
Expand All @@ -60,9 +56,8 @@ jobs:
uses: actions/checkout@v3

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: clippy

- name: Run cargo clippy
Expand Down

0 comments on commit 0cdff54

Please sign in to comment.