Skip to content

Replace deprecated setup-scala with setup-java && Try to fix CI #1282

Replace deprecated setup-scala with setup-java && Try to fix CI

Replace deprecated setup-scala with setup-java && Try to fix CI #1282

Workflow file for this run

name: Scala CI
on:
push:
branches:
- "**"
# tags:
# - "**"
pull_request:
branches:
- master
env:
JAVA_OPTS: -Xms6g -Xmx6g -XX:+UseG1GC
JDK_JAVA_OPTIONS: -Xms6g -Xmx6g -XX:+UseG1GC # See https://stackoverflow.com/a/73708006
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
scala: [3.3.0]
module: [sqltest, db, async, bigdata]
steps:
- uses: actions/checkout@v2
- name: Setup Java and Scala
uses: actions/[email protected]
with:
distribution: temurin
java-version: '8'
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
strategy:
matrix:
scala: [3.3.0]
module: [base, db, async, bigdata, publish]
steps:
- uses: actions/checkout@v2
- name: Setup Java and Scala
uses: actions/[email protected]
with:
distribution: temurin
java-version: '8'
check-latest: true
- run: |
echo "PULL_REQUEST='$PULL_REQUEST'"
export BRANCH=$(git for-each-ref ${{ github.ref }} --format='%(refname:short)')
echo "BRANCH='$BRANCH'"
./build/release.sh ${{ matrix.module }}
env:
ENCRYPTION_PASSWORD: ${{ secrets.ENCRYPTION_PASSWORD }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PULL_REQUEST: ${{ !!github.event.pull_request }}