Skip to content

Commit cd52cb7

Browse files
committed
Modernize CI
1 parent f9c7f02 commit cd52cb7

File tree

2 files changed

+48
-32
lines changed

2 files changed

+48
-32
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 42 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: CI
22

33
env:
4-
JDK_JAVA_OPTIONS: -XX:+PrintCommandLineFlags # JDK_JAVA_OPTIONS is _the_ env. variable to use for modern Java
5-
JVM_OPTS: -XX:+PrintCommandLineFlags # for Java 8 only (sadly, it is not modern enough for JDK_JAVA_OPTIONS)
4+
JDK_JAVA_OPTIONS: -XX:+PrintCommandLineFlags -Xms2G -Xmx8G -Xss4M -XX:+UseG1GC -XX:ReservedCodeCacheSize=512M -XX:NonProfiledCodeHeapSize=256M # JDK_JAVA_OPTIONS is _the_ env. variable to use for modern Java
5+
SBT_OPTS: -XX:+PrintCommandLineFlags -Xms2G -Xmx8G -Xss4M -XX:+UseG1GC -XX:ReservedCodeCacheSize=512M -XX:NonProfiledCodeHeapSize=256M # Needed for sbt
66

77
on:
88
pull_request:
@@ -18,16 +18,17 @@ jobs:
1818
timeout-minutes: 30
1919
steps:
2020
- name: Checkout current branch
21-
uses: actions/checkout@v4.1.1
21+
uses: actions/checkout@v6
22+
- name: Setup Java
23+
uses: actions/setup-java@v5
2224
with:
23-
fetch-depth: 0
25+
distribution: temurin
26+
java-version: 17
27+
check-latest: true
28+
- name: Setup sbt
29+
uses: sbt/setup-sbt@v1
2430
- name: Cache scala dependencies
25-
uses: coursier/cache-action@v6
26-
- name: Setup Action
27-
uses: coursier/setup-action@v1
28-
with:
29-
jvm: temurin:21
30-
apps: sbt
31+
uses: coursier/cache-action@v7
3132
- name: Lint code
3233
run: sbt check
3334

@@ -36,14 +37,17 @@ jobs:
3637
timeout-minutes: 60
3738
steps:
3839
- name: Checkout current branch
39-
uses: actions/checkout@v4.1.1
40-
- name: Cache scala dependencies
41-
uses: coursier/cache-action@v6
42-
- name: Setup Action
43-
uses: coursier/setup-action@v1
40+
uses: actions/checkout@v6
41+
- name: Setup Java
42+
uses: actions/setup-java@v5
4443
with:
45-
jvm: temurin:21
46-
apps: sbt
44+
distribution: temurin
45+
java-version: 17
46+
check-latest: true
47+
- name: Setup sbt
48+
uses: sbt/setup-sbt@v1
49+
- name: Cache scala dependencies
50+
uses: coursier/cache-action@v7
4751
- name: Check Document Generation
4852
run: sbt docs/compileDocs
4953

@@ -54,20 +58,23 @@ jobs:
5458
fail-fast: false
5559
matrix:
5660
java: ['11', '17', '21']
57-
scala: ['2.12.21', '2.13.16', '3.3.3']
61+
scala: ['2.12.x', '2.13.x', '3.x']
5862
platform: ['JVM', 'Native', 'JS']
5963
steps:
6064
- name: Checkout current branch
61-
uses: actions/checkout@v4.1.1
65+
uses: actions/checkout@v6
6266
with:
6367
fetch-depth: 0
64-
- name: Cache scala dependencies
65-
uses: coursier/cache-action@v6
66-
- name: Setup Action
67-
uses: coursier/setup-action@v1
68+
- name: Setup Java
69+
uses: actions/setup-java@v5
6870
with:
69-
jvm: temurin:${{ matrix.java }}
70-
apps: sbt
71+
distribution: temurin
72+
java-version: ${{ matrix.java }}
73+
check-latest: true
74+
- name: Setup sbt
75+
uses: sbt/setup-sbt@v1
76+
- name: Cache scala dependencies
77+
uses: coursier/cache-action@v7
7178
- name: Install libuv
7279
if: matrix.platform == 'Native'
7380
run: sudo apt-get update && sudo apt-get install -y libuv1-dev
@@ -93,16 +100,19 @@ jobs:
93100
if: github.event_name != 'pull_request'
94101
steps:
95102
- name: Checkout current branch
96-
uses: actions/checkout@v4.1.1
103+
uses: actions/checkout@v6
97104
with:
98105
fetch-depth: 0
99-
- name: Cache scala dependencies
100-
uses: coursier/cache-action@v6
101-
- name: Setup Action
102-
uses: coursier/setup-action@v1
106+
- name: Setup Java
107+
uses: actions/setup-java@v5
103108
with:
104-
jvm: temurin:21
105-
apps: sbt
109+
distribution: temurin
110+
java-version: 17
111+
check-latest: true
112+
- name: Setup sbt
113+
uses: sbt/setup-sbt@v1
114+
- name: Cache scala dependencies
115+
uses: coursier/cache-action@v7
106116
- name: Release artifacts
107117
run: sbt ci-release
108118
env:

0 commit comments

Comments
 (0)