Skip to content

Commit efa34d0

Browse files
committed
CI: Use dependency build cache
1 parent 19a6277 commit efa34d0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/actions/build-dependencies/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ runs:
2929
uses: actions/cache@v3
3030
with:
3131
path: ${{ env.DEP_DIR }}
32-
key: ${{ env.DEP_DIR }}-${{ runner.os }}
32+
key: ${{ env.DEP_DIR }}-${{ runner.os }}-${{ inputs.target }}
3333

3434
- name: Run macOS Build
3535
if: ${{ runner.os == 'macOS' && steps.restore-cache.outputs.cache-hit != 'true' }}

.github/actions/build-plugin/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ runs:
4949
if [[ '${{ inputs.codesign }}' == 'true' ]] build_args+=(-s)
5050
if (( ${+CI} && ${+RUNNER_DEBUG} )) build_args+=(--debug)
5151
52-
${{ inputs.workingDirectory }}/.github/scripts/build-macos.zsh ${build_args}
52+
${{ inputs.workingDirectory }}/.github/scripts/build-macos.zsh -d ${{ env.DEP_DIR }} ${build_args}
5353
5454
- name: Run Linux Build
5555
if: ${{ runner.os == 'Linux' }}
@@ -68,7 +68,7 @@ runs:
6868
build_args+=(-p)
6969
fi
7070
71-
${{ inputs.workingDirectory }}/.github/scripts/build-linux.sh "${build_args[@]}"
71+
${{ inputs.workingDirectory }}/.github/scripts/build-linux.sh -d ${{ env.DEP_DIR }} "${build_args[@]}"
7272
7373
- name: Run Windows Build
7474
if: ${{ runner.os == 'Windows' }}

0 commit comments

Comments
 (0)