mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
chore(ci): cache go modules with unified key to reduce cache size
This commit is contained in:
parent
f423b6599c
commit
dc0d31ff54
1 changed files with 11 additions and 1 deletions
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
|
@ -157,13 +157,23 @@ jobs:
|
|||
echo "DIST=nginx-ui-$_NAME" >> $GITHUB_ENV
|
||||
echo "ARTIFACT=$_ARTIFACT" >> $GITHUB_ENV
|
||||
|
||||
- name: Setup go caches
|
||||
- name: Setup Go modules cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/go/pkg/mod
|
||||
key: go-${{ runner.os }}-${{ runner.arch }}-mod-${{ hashFiles('go.mod') }}
|
||||
restore-keys: |
|
||||
go-${{ runner.os }}-${{ runner.arch }}-mod-
|
||||
|
||||
- name: Setup Go build cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: |
|
||||
~/.cache/go-build
|
||||
key: go-${{ runner.os }}-${{ runner.arch }}-${{ env.CACHE_NAME }}-${{ hashFiles('go.mod') }}
|
||||
restore-keys: |
|
||||
go-${{ runner.os }}-${{ runner.arch }}-${{ env.CACHE_NAME }}-
|
||||
|
||||
- name: Download app artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue