From 513df0516abb8d413648602511617b02f91fb0f7 Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Mon, 9 Oct 2023 19:19:11 +0900 Subject: [PATCH] use setup-java instead of deprecated olafurpg/setup-scala --- .github/workflows/ci.yml | 5 +++-- .github/workflows/release.yml | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ea04cfd..1d09dcf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,9 +24,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Setup - uses: olafurpg/setup-scala@v10 + uses: actions/setup-java@v3 with: - java-version: "adopt@1.${{ matrix.java }}" + java-version: "${{ matrix.java }}" + distribution: adopt - name: Coursier cache uses: coursier/cache-action@v6 - name: Build and test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 04474f1..07da394 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,9 +14,10 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Setup - uses: olafurpg/setup-scala@v10 + uses: actions/setup-java@v3 with: - java-version: "adopt@1.8" + java-version: "8" + distribution: adopt - name: Coursier cache uses: coursier/cache-action@v5 - name: Test