From 8e4e2067fc4415f9df0d0c672d29241a20fd5f5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Zu=CC=88hlke?= Date: Mon, 20 Feb 2023 21:14:51 +0100 Subject: [PATCH] Replace olafurpg/setup-scala with actions/setup-java https://github.com/olafurpg/setup-scala/releases/tag/v14 is deprecated and migration to actions/setup-java is encouraged. That action is already used in `ci.yml` --- .github/workflows/nightly.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 41a6982d1..500f02eaa 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -15,6 +15,7 @@ jobs: include: - os: ubuntu-latest java: 8 + distribution: adopt runs-on: ${{ matrix.os }} env: JAVA_OPTS: -Xms800M -Xmx800M -Xss6M -XX:ReservedCodeCacheSize=128M -server -Dsbt.io.virtual=false -Dfile.encoding=UTF-8 @@ -39,10 +40,11 @@ jobs: repository: sbt/zinc ref: develop path: zinc - - name: Setup - uses: olafurpg/setup-scala@v14 + - name: Setup JDK + uses: actions/setup-java@v3 with: - java-version: "adopt@1.${{ matrix.java }}" + distribution: "${{ matrix.distribution }}" + java-version: "${{ matrix.java }}" - name: Coursier cache uses: coursier/cache-action@v6 - name: Build and deploy