Skip to content

Commit 95261bc

Browse files
author
lmvysakh
committed
Generating huge cache with dependency files with v5
1 parent 5ba3d9c commit 95261bc

File tree

1 file changed

+44
-53
lines changed

1 file changed

+44
-53
lines changed

.github/workflows/hugecachedpendencyv5.yml

Lines changed: 44 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Huge Go Module Cache Test with setup-go (Preserve Root Files) - go v5
1+
name: Huge Go Module Cache Test with setup-go (Preserve Root Files, Go 1.24) - v5
22

33
on:
44
workflow_dispatch:
@@ -11,9 +11,6 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v5
1313

14-
- name: Create test directory
15-
run: mkdir -p bigcachetest
16-
1714
- name: Create large go.mod & go.sum in test directory
1815
working-directory: bigcachetest
1916
run: |
@@ -59,9 +56,9 @@ jobs:
5956
go mod tidy
6057
6158
- name: Setup Go with cache
62-
uses: actions/setup-go@v5
59+
uses: actions/ setup-go@v5
6360
with:
64-
go-version: '1.22'
61+
go-version: '1.24'
6562
cache: true
6663
cache-dependency-path: bigcachetest/go.sum
6764

@@ -77,9 +74,6 @@ jobs:
7774
steps:
7875
- uses: actions/checkout@v5
7976

80-
- name: Create test directory
81-
run: mkdir -p bigcachetest
82-
8377
- name: Create large go.mod & go.sum in test directory
8478
working-directory: bigcachetest
8579
run: |
@@ -125,9 +119,9 @@ jobs:
125119
go mod tidy
126120
127121
- name: Setup Go with cache
128-
uses: actions/setup-go@v5
122+
uses: actions/ setup-go@v5
129123
with:
130-
go-version: '1.22'
124+
go-version: '1.24'
131125
cache: true
132126
cache-dependency-path: bigcachetest/go.sum
133127

@@ -143,58 +137,55 @@ jobs:
143137
steps:
144138
- uses: actions/checkout@v5
145139

146-
- name: Create test directory
147-
run: mkdir bigcachetest
148-
149140
- name: Create large go.mod & go.sum in test directory
150141
working-directory: bigcachetest
151142
run: |
152143
$goMod = @"
153-
module example.com/bigcachetest
154-
155-
go 1.24
156-
157-
require (
158-
github.com/aws/aws-sdk-go-v2 v1.29.0
159-
cloud.google.com/go v0.110.0
160-
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.1.0
161-
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v1.2.0
162-
github.com/lib/pq v1.10.9
163-
github.com/go-sql-driver/mysql v1.7.0
164-
github.com/golang/protobuf v1.5.3
165-
google.golang.org/grpc v1.60.0
166-
github.com/Shopify/sarama v1.40.0
167-
github.com/elastic/go-elasticsearch/v8 v8.10.0
168-
github.com/hashicorp/terraform v1.6.2
169-
github.com/uber-go/zap v1.24.0
170-
github.com/prometheus/client_golang v1.16.0
171-
github.com/gin-gonic/gin v1.9.0
172-
github.com/go-redis/redis/v8 v8.11.5
173-
github.com/gorilla/websocket v1.5.0
174-
github.com/sirupsen/logrus v1.9.3
175-
github.com/spf13/cobra v1.8.0
176-
github.com/spf13/viper v1.18.2
177-
go.mongodb.org/mongo-driver v1.13.1
178-
github.com/google/uuid v1.6.0
179-
github.com/minio/minio-go/v7 v7.0.28
180-
github.com/docker/docker/client v23.0.2
181-
github.com/kubernetes/client-go v0.29.0
182-
github.com/coreos/etcd/clientv3 v3.5.10
183-
github.com/apache/thrift v0.19.0
184-
github.com/apache/arrow/go/v13 v13.0.0
185-
github.com/nats-io/nats.go v1.22.1
186-
github.com/segmentio/kafka-go v0.4.30
187-
github.com/googleapis/gax-go/v2 v2.7.0
188-
github.com/gocql/gocql v1.5.0
189-
)
144+
module example.com/bigcachetest
145+
146+
go 1.24
147+
148+
require (
149+
github.com/aws/aws-sdk-go-v2 v1.29.0
150+
cloud.google.com/go v0.110.0
151+
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.1.0
152+
github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute v1.2.0
153+
github.com/lib/pq v1.10.9
154+
github.com/go-sql-driver/mysql v1.7.0
155+
github.com/golang/protobuf v1.5.3
156+
google.golang.org/grpc v1.60.0
157+
github.com/Shopify/sarama v1.40.0
158+
github.com/elastic/go-elasticsearch/v8 v8.10.0
159+
github.com/hashicorp/terraform v1.6.2
160+
github.com/uber-go/zap v1.24.0
161+
github.com/prometheus/client_golang v1.16.0
162+
github.com/gin-gonic/gin v1.9.0
163+
github.com/go-redis/redis/v8 v8.11.5
164+
github.com/gorilla/websocket v1.5.0
165+
github.com/sirupsen/logrus v1.9.3
166+
github.com/spf13/cobra v1.8.0
167+
github.com/spf13/viper v1.18.2
168+
go.mongodb.org/mongo-driver v1.13.1
169+
github.com/google/uuid v1.6.0
170+
github.com/minio/minio-go/v7 v7.0.28
171+
github.com/docker/docker/client v23.0.2
172+
github.com/kubernetes/client-go v0.29.0
173+
github.com/coreos/etcd/clientv3 v3.5.10
174+
github.com/apache/thrift v0.19.0
175+
github.com/apache/arrow/go/v13 v13.0.0
176+
github.com/nats-io/nats.go v1.22.1
177+
github.com/segmentio/kafka-go v0.4.30
178+
github.com/googleapis/gax-go/v2 v2.7.0
179+
github.com/gocql/gocql v1.5.0
180+
)
190181
"@
191182
Set-Content -Path go.mod -Value $goMod
192183
go mod tidy
193184
194185
- name: Setup Go with cache
195-
uses: actions/setup-go@v5
186+
uses: actions/ setup-go@v5
196187
with:
197-
go-version: '1.22'
188+
go-version: '1.24'
198189
cache: true
199190
cache-dependency-path: bigcachetest/go.sum
200191

0 commit comments

Comments
 (0)