Skip to content

Commit 26b08f0

Browse files
authored
Add is-installed, Automatic corepack, Rename --dir Flag (#188)
1 parent f7ad264 commit 26b08f0

File tree

12 files changed

+230
-606
lines changed

12 files changed

+230
-606
lines changed

.github/workflows/ci.yml

+5-31
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,11 @@ jobs:
3030
with:
3131
repo-token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
3232

33-
- uses: actions-rs/toolchain@v1
33+
- uses: dtolnay/rust-toolchain@master
3434
with:
35-
profile: minimal
3635
toolchain: nightly
37-
default: true
3836

39-
- uses: actions/cache@v3
40-
with:
41-
path: |
42-
~/.cargo/bin
43-
~/.cargo/registry/index
44-
~/.cargo/registry/cache
45-
~/.cargo/git/db
46-
./target
47-
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}
48-
restore-keys: |
49-
${{ runner.os }}-cargo-build-
37+
- uses: Swatinem/rust-cache@v2
5038

5139
- run: task build:release
5240

@@ -72,23 +60,11 @@ jobs:
7260
with:
7361
repo-token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
7462

75-
- uses: actions-rs/toolchain@v1
63+
- uses: dtolnay/rust-toolchain@master
7664
with:
77-
profile: minimal
7865
toolchain: nightly
79-
default: true
8066

81-
- uses: actions/cache@v3
82-
with:
83-
path: |
84-
~/.cargo/bin
85-
~/.cargo/registry/index
86-
~/.cargo/registry/cache
87-
~/.cargo/git/db
88-
./target
89-
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
90-
restore-keys: |
91-
${{ runner.os }}-cargo-test-
67+
- uses: Swatinem/rust-cache@v2
9268

9369
- run: task test
9470

@@ -102,11 +78,9 @@ jobs:
10278
with:
10379
repo-token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
10480

105-
- uses: actions-rs/toolchain@v1
81+
- uses: dtolnay/rust-toolchain@master
10682
with:
107-
profile: minimal
10883
toolchain: nightly
109-
override: true
11084
components: rustfmt, clippy
11185

11286
- run: task format -- --check

0 commit comments

Comments
 (0)