Force redraft 2 #1714
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.4 ] | |
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.GETQUILL_SONATYPE_TOKEN_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.GETQUILL_SONATYPE_TOKEN_USER }} |