2727 name : Build ns from head
2828 runs-on :
2929 - nscloud-ubuntu-22.04-amd64-8x16-with-cache
30- - nscloud-cache-size-10gb
30+ - nscloud-cache-size-20gb
3131 - nscloud-cache-tag-foundation-golang
3232 steps :
3333 - name : Check out
7272 strategy :
7373 matrix :
7474 use_prebuilts : [false, true]
75- runs-on : nscloud
75+ runs-on :
76+ - nscloud-ubuntu-22.04-amd64-8x16-with-cache
77+ - nscloud-cache-size-20gb
78+ - nscloud-cache-tag-foundation-golang
7679 timeout-minutes : 15
7780 steps :
7881 - name : Check out
9093 uses : crazy-max/ghaction-github-runtime@v3
9194
9295 - name : Setup cross-invocation caching (Go)
93- uses : actions/ cache@v4
96+ uses : namespacelabs/nscloud- cache-action@v1
9497 with :
95- path : |
96- ~/.cache/go-build
97- ~/go/pkg/mod
98- key : ${{ runner.os }}-go-fnrun-${{ hashFiles('**/go.sum') }}
99- restore-keys : |
100- ${{ runner.os }}-go-fnrun-
98+ cache : go
10199
102100 - name : Download ns
103101 uses : namespace-actions/download-artifact@v0
@@ -138,7 +136,10 @@ jobs:
138136 run_dev :
139137 name : Test local Namespace dev session
140138 needs : build_fn
141- runs-on : nscloud
139+ runs-on :
140+ - nscloud-ubuntu-22.04-amd64-8x16-with-cache
141+ - nscloud-cache-size-20gb
142+ - nscloud-cache-tag-foundation-golang
142143 timeout-minutes : 15
143144 steps :
144145 - name : Check out
@@ -152,14 +153,9 @@ jobs:
152153 password : ${{ secrets.GITHUB_TOKEN }}
153154
154155 - name : Setup cross-invocation caching (Go)
155- uses : actions/ cache@v4
156+ uses : namespacelabs/nscloud- cache-action@v1
156157 with :
157- path : |
158- ~/.cache/go-build
159- ~/go/pkg/mod
160- key : ${{ runner.os }}-go-fndev-${{ github.sha }}
161- restore-keys : |
162- ${{ runner.os }}-go-fndev-
158+ cache : go
163159
164160 - name : Download ns
165161 uses : namespace-actions/download-artifact@v0
@@ -252,21 +248,19 @@ jobs:
252248 - build_fn
253249 - run_e2e_tests
254250 if : github.ref == 'refs/heads/main' && github.event_name == 'push'
255- runs-on : nscloud
251+ runs-on :
252+ - nscloud-ubuntu-22.04-amd64-8x16-with-cache
253+ - nscloud-cache-size-20gb
254+ - nscloud-cache-tag-foundation-golang
256255 timeout-minutes : 30
257256 steps :
258257 - name : Check out
259258 uses : actions/checkout@v4
260259
261260 - name : Setup cross-invocation caching (Go)
262- uses : actions/ cache@v4
261+ uses : namespacelabs/nscloud- cache-action@v1
263262 with :
264- path : |
265- ~/.cache/go-build
266- ~/go/pkg/mod
267- key : ${{ runner.os }}-go-deploystaging-${{ github.sha }}
268- restore-keys : |
269- ${{ runner.os }}-go-deploystaging-
263+ cache : go
270264
271265 - name : Download ns
272266 uses : namespace-actions/download-artifact@v0
@@ -376,21 +370,19 @@ jobs:
376370 test_unprepare :
377371 name : Test unprepare
378372 needs : build_fn
379- runs-on : nscloud
373+ runs-on :
374+ - nscloud-ubuntu-22.04-amd64-8x16-with-cache
375+ - nscloud-cache-size-20gb
376+ - nscloud-cache-tag-foundation-golang
380377 timeout-minutes : 15
381378 steps :
382379 - name : Check out
383380 uses : actions/checkout@v4
384381
385382 - name : Setup cross-invocation caching (Go)
386- uses : actions/ cache@v4
383+ uses : namespacelabs/nscloud- cache-action@v1
387384 with :
388- path : |
389- ~/.cache/go-build
390- ~/go/pkg/mod
391- key : ${{ runner.os }}-go-fnprepare-${{ github.sha }}
392- restore-keys : |
393- ${{ runner.os }}-go-fnprepare-
385+ cache : go
394386
395387 - name : Download ns
396388 uses : namespace-actions/download-artifact@v0
0 commit comments