Skip to content

Commit

Permalink
workaround for actions/checkout#1201
Browse files Browse the repository at this point in the history
  • Loading branch information
qryxip committed Dec 30, 2024
1 parent be26499 commit 7ca1122
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,11 @@ jobs:
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2004-Readme.md#environment-variables-2
echo "ANDROID_NDK_HOME=$ANDROID_NDK_LATEST_HOME" >> "$GITHUB_ENV"
# workaround for https://github.com/actions/checkout/issues/1201
- name: Stash build directory
if: steps.cache-build-result.outputs.cache-hit == 'true'
run: mv ./build "$RUNNER_TEMP/"

- name: Checkout
uses: actions/checkout@v4
if: env.TARGET_LIBRARY == 'onnxruntime'
Expand All @@ -355,6 +360,10 @@ jobs:
submodules: true
ref: v${{ env.ONNXRUNTIME_VERSION }}

- name: Restore the stashed build directory
if: steps.cache-build-result.outputs.cache-hit == 'true'
run: mv "$RUNNER_TEMP/build" .

- name: Checkout
uses: actions/checkout@v4
if: env.TARGET_LIBRARY == 'voicevox_onnxruntime'
Expand Down

0 comments on commit 7ca1122

Please sign in to comment.