You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by fa...@apache.org on 2023/02/27 21:59:47 UTC

[incubator-pekko-grpc] branch main updated: use setup-java action to avoid Jabba issues and deprecation of setup-scala (#31)

This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-grpc.git


The following commit(s) were added to refs/heads/main by this push:
     new ad465518 use setup-java action to avoid Jabba issues and deprecation of setup-scala (#31)
ad465518 is described below

commit ad465518adceaa71011f957a8a79261aff642f46
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Mon Feb 27 22:59:40 2023 +0100

    use setup-java action to avoid Jabba issues and deprecation of setup-scala (#31)
---
 .github/workflows/build-test.yml     | 70 +++++++++++++++++++-----------------
 .github/workflows/link-validator.yml |  9 ++---
 .github/workflows/publish.yml        | 25 +++++++------
 3 files changed, 57 insertions(+), 47 deletions(-)

diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml
index 29ec2c56..38e52251 100644
--- a/.github/workflows/build-test.yml
+++ b/.github/workflows/build-test.yml
@@ -22,13 +22,14 @@ jobs:
           # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
           fetch-depth: 0
 
-      - name: Set up JDK 11
-        uses: olafurpg/setup-scala@v13
+      - name: Setup Java 11
+        uses: actions/setup-java@v3
         with:
-          java-version: adopt@1.11
-
+          distribution: temurin
+          java-version: 11
+      
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v6.2
+        uses: coursier/cache-action@v6
 
       #- name: FOSSA policy check
       #  if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'apache/incubator-pekko-grpc' }}
@@ -53,12 +54,13 @@ jobs:
           # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
           fetch-depth: 0
 
-      - name: Set up JDK 11
-        uses: olafurpg/setup-scala@v13
+      - name: Setup Java 8
+        uses: actions/setup-java@v3
         with:
-          java-version: adopt@1.11
+          distribution: temurin
+          java-version: 11
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v6.2
+        uses: coursier/cache-action@v6
       - name: Compile benchmarks
         run: |-
           cd benchmark-java
@@ -72,23 +74,23 @@ jobs:
       fail-fast: false
       matrix:
         SCALA_VERSION: [2.12, 2.13]
-        # use 1.8 when https://github.com/apache/incubator-pekko-grpc/issues/1332 is fixed
-        JABBA_JDK: [1.8.0-275, 1.11]
+        JAVA_VERSION: [8, 11]
     steps:
       - name: Checkout
         uses: actions/checkout@v3
         with:
           fetch-depth: 0
 
-      - name: Set up JDK ${{ matrix.JABBA_JDK }}
-        uses: olafurpg/setup-scala@v13
+      - name: Setup Java ${{ matrix.JAVA_VERSION }}
+        uses: actions/setup-java@v3
         with:
-          java-version: adopt@${{ matrix.JABBA_JDK }}
+          distribution: temurin
+          java-version: ${{ matrix.JAVA_VERSION }}
 
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v6.2
+        uses: coursier/cache-action@v6
 
-      - name: Compile and test for JDK ${{ matrix.JABBA_JDK }}, Scala ${{ matrix.SCALA_VERSION }}
+      - name: Compile and test for JDK ${{ matrix.JAVA_VERSION }}, Scala ${{ matrix.SCALA_VERSION }}
         run: sbt ++${{ matrix.SCALA_VERSION }}.* test
 
 
@@ -111,13 +113,14 @@ jobs:
         with:
           fetch-depth: 0
 
-      - name: Set up JDK 8
-        uses: olafurpg/setup-scala@v13
+      - name: Setup Java 8
+        uses: actions/setup-java@v3
         with:
-          java-version: adopt@1.8
+          distribution: temurin
+          java-version: 8
 
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v6.2
+        uses: coursier/cache-action@v6
 
       - name: Scripted ${{ matrix.test-set }}
         run: cp .jvmopts-ghactions .jvmopts && sbt ++${{ matrix.scala-version }}.* "sbt-akka-grpc/scripted ${{ matrix.test-set }}/*"
@@ -131,13 +134,14 @@ jobs:
         with:
           fetch-depth: 0
 
-      - name: Set up JDK 8
-        uses: olafurpg/setup-scala@v13
+      - name: Setup Java 8
+        uses: actions/setup-java@v3
         with:
-          java-version: adopt@1.8
+          distribution: temurin
+          java-version: 8
 
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v6.2
+        uses: coursier/cache-action@v6
 
       - name: Gather version
         run: |-
@@ -186,13 +190,14 @@ jobs:
         with:
           fetch-depth: 0
 
-      - name: Set up JDK 8
-        uses: olafurpg/setup-scala@v13
+      - name: Setup Java 8
+        uses: actions/setup-java@v3
         with:
-          java-version: adopt@1.8
+          distribution: temurin
+          java-version: 8
 
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v6.2
+        uses: coursier/cache-action@v6
 
       - name: Gather version
         run: |-
@@ -231,12 +236,13 @@ jobs:
         with:
           fetch-depth: 0
 
-      - name: Set up JDK 11
-        uses: olafurpg/setup-scala@v13
+      - name: Setup Java 11
+        uses: actions/setup-java@v3
         with:
-          java-version: adopt@1.11
+          distribution: temurin
+          java-version: 11
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v6.2
+        uses: coursier/cache-action@v6
       - name: Test Maven Java
         run: |-
           cp .jvmopts-ghactions .jvmopts
diff --git a/.github/workflows/link-validator.yml b/.github/workflows/link-validator.yml
index ef6870da..efc52cfd 100644
--- a/.github/workflows/link-validator.yml
+++ b/.github/workflows/link-validator.yml
@@ -17,13 +17,14 @@ jobs:
           # fetch everything https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches
           fetch-depth: 0
 
-      - name: Set up JDK 11
-        uses: olafurpg/setup-scala@v13
+      - name: Setup Java 8
+        uses: actions/setup-java@v3
         with:
-          java-version: adopt@1.11
+          distribution: temurin
+          java-version: 11
 
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v6.2
+        uses: coursier/cache-action@v6
 
       - name: sbt site
         run: sbt akka-grpc-docs/makeSite
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index c80da9e7..90befbee 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -17,11 +17,12 @@ jobs:
         with:
           # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
           fetch-depth: 0
-
-      - name: Set up JDK 8
-        uses: olafurpg/setup-scala@v13
+          
+      - name: Setup Java 8
+        uses: actions/setup-java@v3
         with:
-          java-version: adopt@1.8
+          distribution: temurin
+          java-version: 8    
 
       - name: Publish
         run: |-
@@ -45,10 +46,11 @@ jobs:
           # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
           fetch-depth: 0
 
-      - name: Set up JDK 8
-        uses: olafurpg/setup-scala@v13
+      - name: Setup Java 8
+        uses: actions/setup-java@v3
         with:
-          java-version: adopt@1.8
+          distribution: temurin
+          java-version: 8
 
       - name: Publish Plugin to Gradle Plugin Repository
         run: cd gradle-plugin && ./gradlew publishPlugins -Pgradle.publish.key='${{ secrets.GRADLE_PUBLISH_KEY }}' -Pgradle.publish.secret='${{ secrets.GRADLE_SECRET }}'
@@ -64,13 +66,14 @@ jobs:
           # we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
           fetch-depth: 0
 
-      - name: Set up JDK 8
-        uses: olafurpg/setup-scala@v13
+      - name: Setup Java 8
+        uses: actions/setup-java@v3
         with:
-          java-version: adopt@1.8
+          distribution: temurin
+          java-version: 8
 
       - name: Cache Coursier cache
-        uses: coursier/cache-action@v6.2
+        uses: coursier/cache-action@v6
 
       - name: Publish
         run: |-


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org