Skip to content

Commit c3cb5ff

Browse files
committed
chore: cargo cache should repect flag & binstall ver pin
1 parent 3946461 commit c3cb5ff

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/actions/setup/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,14 @@ runs:
4545
cargo-${{ runner.os }}-
4646
4747
- name: Install cargo-binstall
48+
if: inputs.cache-cargo == 'true'
4849
shell: bash
49-
run: command -v cargo-binstall || curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
50+
run: command -v cargo-binstall || curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/v1.18.1/install-from-binstall-release.sh | bash
5051

5152
- uses: actions/cache@v4
5253
with:
5354
path: .moon/cache
54-
key: moon-${{ runner.os }}-${{ hashFiles('.moon/workspace.yml', '.moon/tasks/*.yml', '.moon/toolchains.yml') }}
55+
key: moon-${{ runner.os }}-${{ hashFiles('.moon/workspace.yml', '.moon/tasks/*.yml', '.moon/toolchains.yml', '.prototools') }}
5556
restore-keys: |
5657
moon-${{ runner.os }}-
5758

0 commit comments

Comments
 (0)