File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818* .tfstate. *
1919* .tfvars
2020* .tfvars. *
21+ * .local.json
2122
2223# Dirs
2324/.idea
Original file line number Diff line number Diff line change 8585 include : ${{ fromJson(needs.expand-matrix.outputs.matrix) }}
8686 runs-on : ${{ matrix.runner }}
8787 steps :
88- - name : Maximize Docker Build Space
89- uses : gpustack/.github/.github/actions/maximize-docker-build-space@main
90- with :
91- deep-clean : true
92- root-reserve-mb : 20480
9388 - name : Prepare Env
9489 env :
9590 INPUT_REPOSITORY_OWNER : ${{ github.repository_owner }}
@@ -128,14 +123,26 @@ jobs:
128123 uses : actions/cache@v4
129124 with :
130125 path : |-
131- ${{ github.workspace }}/.cache
126+ ${{ github.workspace }}/.cache/go-build
127+ ${{ github.workspace }}/.cache/go-mod
132128 ${{ github.workspace }}/.sbin
133129 key : ci-${{ matrix.platform }}-${{ hashFiles('go.sum') }}
134130 - name : Restore BuildX Cache
135131 uses : reproducible-containers/buildkit-cache-dance@v3
136132 with :
137133 builder : ${{ steps.setup-buildx.outputs.name }}
138- cache-dir : ${{ github.workspace }}/.cache
134+ cache-map : |-
135+ {
136+ "${{ github.workspace }}/.cache/go-build": {
137+ "target": "/root/.cache/go-build"
138+ },
139+ "${{ github.workspace }}/.cache/go-mod": {
140+ "target": "/go/pkg/mod"
141+ },
142+ "${{ github.workspace }}/.sbin": {
143+ "target": "/usr/local/go/src/gpustack.ai/gpustack/.sbin"
144+ }
145+ }
139146 dockerfile : ${{ github.workspace }}/pack/${{ env.INPUT_REPOSITORY }}/Dockerfile
140147 skip-extraction : ${{ steps.setup-buildx-cache.outputs.cache-hit }}
141148 - name : Login DockerHub
Original file line number Diff line number Diff line change 6565 include : ${{ fromJson(needs.expand-matrix.outputs.matrix) }}
6666 runs-on : ${{ matrix.runner }}
6767 steps :
68- - name : Maximize Docker Build Space
69- uses : gpustack/.github/.github/actions/maximize-docker-build-space@main
70- with :
71- deep-clean : true
72- root-reserve-mb : 20480
7368 - name : Prepare Env
7469 env :
7570 INPUT_REPOSITORY_OWNER : ${{ github.repository_owner }}
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ go.work.*
2020* .tfstate. *
2121* .tfvars
2222* .tfvars. *
23+ * .local.json
2324
2425# Dirs
2526/.idea
You can’t perform that action at this time.
0 commit comments