Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Sep 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
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
Expand All @@ -23,13 +27,16 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup Java and Scala
uses: olafurpg/setup-scala@v10
uses: actions/setup-[email protected]
with:
java-version: 1.8.0
distribution: temurin
java-version: '8'
check-latest: true

- name: Scala ${{ matrix.scala }} Building ${{ matrix.module }}
env:
SCALA_VERSION: ${{ matrix.scala }}
run: |
export SCALA_VERSION=${{ matrix.scala }}
echo "SCALA_VERSION='$SCALA_VERSION'"
./build/build.sh ${{ matrix.module }}

Expand All @@ -45,14 +52,17 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Setup Java and Scala
uses: olafurpg/setup-scala@v10
uses: actions/setup-[email protected]
with:
java-version: 1.8.0
distribution: temurin
java-version: '8'
check-latest: true
- run: |
export ENCRYPTION_PASSWORD=${{ secrets.ENCRYPTION_PASSWORD }}
export PGP_PASSPHRASE=${{ secrets.PGP_PASSPHRASE }}
export PULL_REQUEST=${{ !!github.event.pull_request }}
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 }}
Loading