From 0d5d1db92787b678de2de8ce3304aa06fb4d5831 Mon Sep 17 00:00:00 2001 From: xkeyC <39891083+xkeyC@users.noreply.github.com> Date: Thu, 28 Nov 2024 17:41:44 +0800 Subject: [PATCH] feat: use cargo install to cache bin --- .github/workflows/auto_release.yml | 5 +++-- .github/workflows/pr_check.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto_release.yml b/.github/workflows/auto_release.yml index ff1d78a..441613c 100644 --- a/.github/workflows/auto_release.yml +++ b/.github/workflows/auto_release.yml @@ -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 \ No newline at end of file + run: localization -m auto_release \ No newline at end of file diff --git a/.github/workflows/pr_check.yml b/.github/workflows/pr_check.yml index b588e27..ba79098 100644 --- a/.github/workflows/pr_check.yml +++ b/.github/workflows/pr_check.yml @@ -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 \ No newline at end of file + run: localization -m pr_check \ No newline at end of file