From c7e5f3ddbeb087382485f1a65e62d5ca92f16c81 Mon Sep 17 00:00:00 2001 From: xuwei-k <6b656e6a69@gmail.com> Date: Wed, 23 Oct 2024 07:11:21 +0900 Subject: [PATCH] use setup-java and setup-sbt instead of deprecated setup-scala --- .github/workflows/ci.yml | 6 ++++-- .github/workflows/release.yml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 746dc5e..382ee64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,9 +16,11 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 - - uses: olafurpg/setup-scala@v10 + - uses: actions/setup-java@v4 with: - java-version: "adopt@1.8" + distribution: temurin + java-version: 8 + - uses: sbt/setup-sbt@v1 - uses: coursier/cache-action@v5 - name: Install Scala Native dependencies run: sudo apt-get install libgc-dev libunwind8-dev diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cb4440a..d6c6e7d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,9 +10,11 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: olafurpg/setup-scala@v14 + - uses: actions/setup-java@v4 with: - java-version: "adopt@1.8" + distribution: temurin + java-version: 8 + - uses: sbt/setup-sbt@v1 - run: sbt ci-release env: PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}