From b114c0c1905ce53667f69e3e87102c9e2c51854c Mon Sep 17 00:00:00 2001 From: Chris Birchall Date: Mon, 6 Jan 2025 12:09:21 +0000 Subject: [PATCH] Install sbt in GH actions (#551) sbt is no longer present on the Ubuntu runners. https://github.com/actions/setup-java/issues/712#issuecomment-2557396980 --- .github/workflows/ci.yml | 4 ++++ .github/workflows/release.yml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 728f316c..c7cf2a76 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,6 +14,7 @@ jobs: distribution: 'temurin' java-version: '17' cache: 'sbt' + - uses: sbt/setup-sbt@v1 - name: Test run: sbt -J-Xms4G -J-Xmx4G +test bincompat: @@ -25,6 +26,7 @@ jobs: distribution: 'temurin' java-version: '17' cache: 'sbt' + - uses: sbt/setup-sbt@v1 - name: Check binary compatibility run: sbt -J-Xms4G -J-Xmx4G +mimaReportBinaryIssues docs: @@ -36,6 +38,7 @@ jobs: distribution: 'temurin' java-version: '17' cache: 'sbt' + - uses: sbt/setup-sbt@v1 - name: Compile documentation run: sbt -J-Xms4G -J-Xmx4G docs/mdoc format: @@ -47,5 +50,6 @@ jobs: distribution: 'temurin' java-version: '17' cache: 'sbt' + - uses: sbt/setup-sbt@v1 - name: Check formatting run: sbt -J-Xms4G -J-Xmx4G scalafmtCheckAll scalafmtSbtCheck diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a2b37051..b1a8fe05 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,6 +15,7 @@ jobs: distribution: 'temurin' java-version: '17' cache: 'sbt' + - uses: sbt/setup-sbt@v1 - name: Publish run: sbt +test ci-release env: @@ -33,6 +34,7 @@ jobs: distribution: 'temurin' java-version: '17' cache: 'sbt' + - uses: sbt/setup-sbt@v1 - uses: ruby/setup-ruby@v1 with: ruby-version: 2.6