-
Notifications
You must be signed in to change notification settings - Fork 49
61 lines (54 loc) · 1.92 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Scala CI
on:
pull_request:
push:
branches:
- master
release:
types: [ published ] # Triggers the CI when a new GitHub Release is published
env:
# See:
# - https://stackoverflow.com/a/73708006
# - https://stackoverflow.com/questions/73465937/apache-spark-3-3-0-breaks-on-java-17-with-cannot-access-class-sun-nio-ch-direct
JAVA_OPTS: -Xms6G -Xmx6G -XX:+UseG1GC -XX:ReservedCodeCacheSize=256m -XX:+TieredCompilation -Dcommunity=false -Dquill.macro.log=false --add-exports java.base/sun.nio.ch=ALL-UNNAMED
JDK_JAVA_OPTIONS: -Xms6G -Xmx6G -XX:+UseG1GC -XX:ReservedCodeCacheSize=256m -XX:+TieredCompilation -Dcommunity=false -Dquill.macro.log=false --add-exports java.base/sun.nio.ch=ALL-UNNAMED
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
scala: [ 3.3.3 ]
module: [ sqltest, db, bigdata ]
steps:
- uses: actions/[email protected]
- name: Setup Java and Scala
uses: actions/[email protected]
with:
distribution: temurin
java-version: '17'
check-latest: true
- name: Scala ${{ matrix.scala }} Building ${{ matrix.module }}
env:
SCALA_VERSION: ${{ matrix.scala }}
run: |
echo "SCALA_VERSION='$SCALA_VERSION'"
./build/build.sh ${{ matrix.module }}
release:
if: ${{github.event_name != 'pull_request'}}
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/[email protected]
- name: Setup Java and Scala
uses: actions/[email protected]
with:
distribution: temurin
java-version: '17'
check-latest: true
- run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}