feat: use cargo install to cache bin

This commit is contained in:
xkeyC 2024-11-28 17:41:44 +08:00 committed by GitHub
parent 218b40de66
commit 0d5d1db927
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View File

@ -30,9 +30,10 @@ jobs:
prefix-key: "rs_cache"
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
shared-key: "share"
- name: Setup localization runner tools
run: cargo install --path ./runner_tools/localization
- name: Auto Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_REPO: ${{ github.repository }}
run: cargo run --release --manifest-path ./runner_tools/localization/Cargo.toml -- -m auto_release
run: localization -m auto_release

View File

@ -33,10 +33,11 @@ jobs:
prefix-key: "rs_cache"
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
shared-key: "share"
- name: Setup localization runner tools
run: cargo install --path ./runner_tools/localization
- name: PR Check
env:
GH_REPO: ${{ github.repository }}
GH_PR_NUMBER: ${{ github.event.pull_request.id }}
GH_PR_TITLE: ${{ github.event.pull_request.title }}
run: cargo run --release --manifest-path ./runner_tools/localization/Cargo.toml -- -m pr_check
run: localization -m pr_check