File tree Expand file tree Collapse file tree 2 files changed +32
-15
lines changed
Expand file tree Collapse file tree 2 files changed +32
-15
lines changed Original file line number Diff line number Diff line change 77 - cron : ' 0 7 * * 6'
88jobs :
99 build :
10+ strategy :
11+ matrix :
12+ include :
13+ - java : 8
14+ distribution : temurin
15+ sbt : 1
16+ - java : 8
17+ distribution : temurin
18+ sbt : 2
1019 runs-on : ubuntu-latest
1120 env :
1221 # define Java options for both official sbt and sbt-extras
1322 JAVA_OPTS : -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
1423 JVM_OPTS : -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
1524 steps :
1625 - name : Checkout
17- uses : actions/checkout@v2
26+ uses : actions/checkout@v4
1827 - name : Setup Scala
19- uses : olafurpg /setup-scala@v10
28+ uses : actions /setup-java@v4
2029 with :
21- 22- - name : Coursier cache
23- uses : coursier/cache-action@v5
24- - name : Build and test
30+ distribution : " ${{ matrix.distribution }}"
31+ java-version : " ${{ matrix.java }}"
32+ cache : sbt
33+ - name : Build and test (sbt 1.x)
34+ if : ${{ matrix.sbt == 1 }}
35+ shell : bash
2536 run : |
2637 gpg --import test-key.gpg
27- sbt -v clean test scripted
28- rm -rf "$HOME/.ivy2/local" || true
29- find $HOME/Library/Caches/Coursier/v1 -name "ivydata-*.properties" -delete || true
30- find $HOME/.ivy2/cache -name "ivydata-*.properties" -delete || true
31- find $HOME/.cache/coursier/v1 -name "ivydata-*.properties" -delete || true
32- find $HOME/.sbt
38+ sbt -v ++2.12.x clean test scripted
39+ - name : Build and test (sbt 2.x)
40+ if : ${{ matrix.sbt == 2 }}
41+ shell : bash
42+ run : |
43+ gpg --import test-key.gpg
44+ sbt -v ++3.x clean test scripted
Original file line number Diff line number Diff line change @@ -14,11 +14,16 @@ jobs:
1414 JVM_OPTS : -Xms2048M -Xmx2048M -Xss6M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
1515 steps :
1616 - name : Checkout
17- uses : actions/checkout@v2
18- - name : Coursier cache
19- uses : coursier/cache-action@v5
17+ uses : actions/checkout@v4
18+ - name : Setup JDK
19+ uses : actions/setup-java@v4
20+ with :
21+ distribution : temurin
22+ java-version : 8
23+ cache : sbt
2024 - name : Test
2125 run : |
26+ gpg --import test-key.gpg
2227 sbt +test +packagedArtifacts
2328 - name : Release
2429 env :
You can’t perform that action at this time.
0 commit comments