Skip to content

Commit e7409ba

Browse files
committed
cache dependencies.
1 parent f985f73 commit e7409ba

File tree

3 files changed

+22
-12
lines changed

3 files changed

+22
-12
lines changed

.github/workflows/ci.yml

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
name: CI
55
env:
6-
JDK_JAVA_OPTIONS: -XX:+PrintCommandLineFlags -XX:MaxMetaspaceSize=4G -Xmx4G -Xss8M -XX:+UseG1GC # JDK_JAVA_OPTIONS is _the_ env. variable to use for modern Java
7-
JVM_OPTS: -XX:+PrintCommandLineFlags -XX:MaxMetaspaceSize=4G -Xmx4G -Xss8M -XX:+UseG1GC # for Java 8 only (sadly, it is not modern enough for JDK_JAVA_OPTIONS)
6+
JDK_JAVA_OPTIONS: -XX:+PrintCommandLineFlags -XX:MaxMetaspaceSize=4G -Xms4G -Xmx8G -Xss16M -XX:+UseG1GC -XX:ReservedCodeCacheSize=512m # JDK_JAVA_OPTIONS is _the_ env. variable to use for modern Java
7+
JVM_OPTS: -XX:+PrintCommandLineFlags -XX:MaxMetaspaceSize=4G -Xmx4G -Xms4G -Xss16M -XX:+UseG1GC -XX:ReservedCodeCacheSize=512m # for Java 8 only (sadly, it is not modern enough for JDK_JAVA_OPTIONS)
88
NODE_OPTIONS: --max_old_space_size=6144
99
'on':
1010
workflow_dispatch: {}
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set Swap Space
2525
uses: pierotofy/set-swap-space@master
2626
with:
27-
swap-size-gb: 12
27+
swap-size-gb: 7
2828
- name: Git Checkout
2929
uses: actions/checkout@v3.3.0
3030
with:
@@ -37,6 +37,8 @@ jobs:
3737
distribution: temurin
3838
java-version: '8'
3939
check-latest: true
40+
- name: Cache Dependencies
41+
uses: coursier/cache-action@v6
4042
- name: Check all code compiles
4143
run: sbt +Test/compile
4244
- name: Check artifacts build process
@@ -51,7 +53,7 @@ jobs:
5153
- name: Set Swap Space
5254
uses: pierotofy/set-swap-space@master
5355
with:
54-
swap-size-gb: 12
56+
swap-size-gb: 7
5557
- name: Git Checkout
5658
uses: actions/checkout@v3.3.0
5759
with:
@@ -64,6 +66,8 @@ jobs:
6466
distribution: temurin
6567
java-version: '8'
6668
check-latest: true
69+
- name: Cache Dependencies
70+
uses: coursier/cache-action@v6
6771
- name: Lint
6872
run: sbt lint
6973
test:
@@ -72,7 +76,6 @@ jobs:
7276
continue-on-error: false
7377
strategy:
7478
fail-fast: false
75-
max-parallel: 3
7679
matrix:
7780
java:
7881
- '17'
@@ -85,7 +88,7 @@ jobs:
8588
- name: Set Swap Space
8689
uses: pierotofy/set-swap-space@master
8790
with:
88-
swap-size-gb: 12
91+
swap-size-gb: 7
8992
- name: Install libuv
9093
run: sudo apt-get update && sudo apt-get install -y libuv1-dev
9194
- name: Setup Scala
@@ -94,6 +97,8 @@ jobs:
9497
distribution: temurin
9598
java-version: ${{ matrix.java }}
9699
check-latest: true
100+
- name: Cache Dependencies
101+
uses: coursier/cache-action@v6
97102
- name: Git Checkout
98103
uses: actions/checkout@v3.3.0
99104
with:
@@ -134,7 +139,7 @@ jobs:
134139
- name: Set Swap Space
135140
uses: pierotofy/set-swap-space@master
136141
with:
137-
swap-size-gb: 12
142+
swap-size-gb: 7
138143
- name: Git Checkout
139144
uses: actions/checkout@v3.3.0
140145
with:
@@ -147,6 +152,8 @@ jobs:
147152
distribution: temurin
148153
java-version: '8'
149154
check-latest: true
155+
- name: Cache Dependencies
156+
uses: coursier/cache-action@v6
150157
- name: Release
151158
run: sbt ci-release
152159
env:
@@ -165,7 +172,7 @@ jobs:
165172
- name: Set Swap Space
166173
uses: pierotofy/set-swap-space@master
167174
with:
168-
swap-size-gb: 12
175+
swap-size-gb: 7
169176
- name: Git Checkout
170177
uses: actions/checkout@v3.3.0
171178
with:
@@ -178,6 +185,8 @@ jobs:
178185
distribution: temurin
179186
java-version: '8'
180187
check-latest: true
188+
- name: Cache Dependencies
189+
uses: coursier/cache-action@v6
181190
- name: Setup NodeJs
182191
uses: actions/setup-node@v3
183192
with:
@@ -198,7 +207,7 @@ jobs:
198207
- name: Set Swap Space
199208
uses: pierotofy/set-swap-space@master
200209
with:
201-
swap-size-gb: 12
210+
swap-size-gb: 7
202211
- name: Git Checkout
203212
uses: actions/checkout@v3.3.0
204213
with:
@@ -212,6 +221,8 @@ jobs:
212221
distribution: temurin
213222
java-version: '8'
214223
check-latest: true
224+
- name: Cache Dependencies
225+
uses: coursier/cache-action@v6
215226
- name: Generate Readme
216227
run: sbt docs/generateReadme
217228
- name: Commit Changes

build.sbt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ inThisBuild(
77
name := "ZIO Prelude",
88
ciEnabledBranches := Seq("series/2.x"),
99
javaPlatforms := Seq("17"),
10-
ciSwapSizeGB := 12,
10+
ciSwapSizeGB := 7,
1111
ciGroupSimilarTests := true,
12-
ciMatrixMaxParallel := Some(3),
1312
ciCheckGithubWorkflow := Seq.empty,
1413
supportedScalaVersions := Map(
1514
(benchmarks / thisProject).value.id -> (benchmarks / crossScalaVersions).value,

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
val zioSbtVersion = "0.3.10+79-48f74ba9-SNAPSHOT"
1+
val zioSbtVersion = "0.3.10+82-af7cebdf-SNAPSHOT"
22

33
addSbtPlugin("dev.zio" % "zio-sbt-ecosystem" % zioSbtVersion)
44
addSbtPlugin("dev.zio" % "zio-sbt-website" % zioSbtVersion)

0 commit comments

Comments
 (0)