Skip to content

Commit fad2cd1

Browse files
committed
build: fix macos cache hit
1 parent 5508e86 commit fad2cd1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
key: cli-${{ hashFiles('cli/[!dist]**', 'cli/**/[!dist]**', 'go.mod', 'go.sum') }}
3737

3838
- name: Upload Artifact
39+
if: steps.cache.outputs.cache-hit == 'true'
3940
uses: actions/upload-artifact@v4
4041
with:
4142
name: guppy
@@ -91,9 +92,10 @@ jobs:
9192
uses: actions/cache@v4
9293
with:
9394
path: ./macos/build
94-
key: macos-${{ hashFiles('macos/[!build]**', 'maco/**/[!build]**') }}
95+
key: macos-${{ hashFiles('macos/[!build]**', 'macos/**/[!build]**') }}
9596

9697
- name: Upload macOS app
98+
if: steps.cache.outputs.cache-hit == 'true'
9799
uses: actions/upload-artifact@v4
98100
with:
99101
name: guppy-${{ needs.check_cli_cache.outputs.version }}.pkg
@@ -102,7 +104,7 @@ jobs:
102104

103105
build_macos:
104106
needs: [check_cli_cache, build_cli, check_macos_cache]
105-
if: always() && needs.check_cli_cache.outputs.cache-hit != 'true'
107+
if: always() && needs.check_macos_cache.outputs.cache-hit != 'true'
106108
runs-on: macos-latest
107109
steps:
108110
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)