@@ -27,15 +27,15 @@ jobs:
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
3434 uses : actions/checkout@v4
3535 - name : Set up Go
3636 uses : actions/setup-go@v5
3737 with :
38- go-version : 1.21 .x
38+ go-version : 1.22 .x
3939 cache : false
4040 - name : Setup cross-invocation caching (Go)
4141 uses : namespacelabs/nscloud-cache-action@v1
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
@@ -89,15 +92,15 @@ jobs:
8992 - name : Expose GitHub Runtime
9093 uses : crazy-max/ghaction-github-runtime@v3
9194
95+ - name : Set up Go
96+ uses : actions/setup-go@v5
97+ with :
98+ go-version : 1.22.x
99+ cache : false
92100 - name : Setup cross-invocation caching (Go)
93- uses : actions/ cache@v4
101+ uses : namespacelabs/nscloud- cache-action@v1
94102 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-
103+ cache : go
101104
102105 - name : Download ns
103106 uses : namespace-actions/download-artifact@v0
@@ -138,7 +141,10 @@ jobs:
138141 run_dev :
139142 name : Test local Namespace dev session
140143 needs : build_fn
141- runs-on : nscloud
144+ runs-on :
145+ - nscloud-ubuntu-22.04-amd64-8x16-with-cache
146+ - nscloud-cache-size-20gb
147+ - nscloud-cache-tag-foundation-golang
142148 timeout-minutes : 15
143149 steps :
144150 - name : Check out
@@ -151,15 +157,16 @@ jobs:
151157 username : ${{ github.actor }}
152158 password : ${{ secrets.GITHUB_TOKEN }}
153159
160+ - name : Set up Go
161+ uses : actions/setup-go@v5
162+ with :
163+ go-version : 1.22.x
164+ cache : false
165+
154166 - name : Setup cross-invocation caching (Go)
155- uses : actions/ cache@v4
167+ uses : namespacelabs/nscloud- cache-action@v1
156168 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-
169+ cache : go
163170
164171 - name : Download ns
165172 uses : namespace-actions/download-artifact@v0
@@ -252,21 +259,25 @@ jobs:
252259 - build_fn
253260 - run_e2e_tests
254261 if : github.ref == 'refs/heads/main' && github.event_name == 'push'
255- runs-on : nscloud
262+ runs-on :
263+ - nscloud-ubuntu-22.04-amd64-8x16-with-cache
264+ - nscloud-cache-size-20gb
265+ - nscloud-cache-tag-foundation-golang
256266 timeout-minutes : 30
257267 steps :
258268 - name : Check out
259269 uses : actions/checkout@v4
260270
271+ - name : Set up Go
272+ uses : actions/setup-go@v5
273+ with :
274+ go-version : 1.22.x
275+ cache : false
276+
261277 - name : Setup cross-invocation caching (Go)
262- uses : actions/ cache@v4
278+ uses : namespacelabs/nscloud- cache-action@v1
263279 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-
280+ cache : go
270281
271282 - name : Download ns
272283 uses : namespace-actions/download-artifact@v0
@@ -376,21 +387,25 @@ jobs:
376387 test_unprepare :
377388 name : Test unprepare
378389 needs : build_fn
379- runs-on : nscloud
390+ runs-on :
391+ - nscloud-ubuntu-22.04-amd64-8x16-with-cache
392+ - nscloud-cache-size-20gb
393+ - nscloud-cache-tag-foundation-golang
380394 timeout-minutes : 15
381395 steps :
382396 - name : Check out
383397 uses : actions/checkout@v4
384398
399+ - name : Set up Go
400+ uses : actions/setup-go@v5
401+ with :
402+ go-version : 1.22.x
403+ cache : false
404+
385405 - name : Setup cross-invocation caching (Go)
386- uses : actions/ cache@v4
406+ uses : namespacelabs/nscloud- cache-action@v1
387407 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-
408+ cache : go
394409
395410 - name : Download ns
396411 uses : namespace-actions/download-artifact@v0
0 commit comments