From 10bc4f83ec6f18d4ae7c93ed59176ed7e06e17ca Mon Sep 17 00:00:00 2001 From: Albert Meltzer <7529386+kitbellew@users.noreply.github.com> Date: Thu, 23 Jan 2025 22:16:29 -0800 Subject: [PATCH] Workflows: load sbt explicitly --- .github/workflows/ci.yml | 12 +++++++++--- .github/workflows/mdoc.yml | 3 ++- .github/workflows/release.yml | 4 +++- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f95b47d02..9c3d9a86b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,9 @@ jobs: - uses: actions/setup-java@v4 with: java-version: 11 - distribution: adopt + distribution: temurin + cache: sbt + - uses: sbt/setup-sbt@v1 - run: sbt '++2.12.19; docs/mdoc' test-windows: name: "Windows" @@ -41,7 +43,9 @@ jobs: - uses: actions/setup-java@v4 with: java-version: 11 - distribution: adopt + distribution: temurin + cache: sbt + - uses: sbt/setup-sbt@v1 - run: sbt '++2.13.15 test' shell: bash test: @@ -67,5 +71,7 @@ jobs: - uses: actions/setup-java@v4 with: java-version: ${{ matrix.java }} - distribution: adopt + distribution: temurin + cache: sbt + - uses: sbt/setup-sbt@v1 - run: sbt ${{ matrix.command }} diff --git a/.github/workflows/mdoc.yml b/.github/workflows/mdoc.yml index 47e00806c..e4a3cb670 100644 --- a/.github/workflows/mdoc.yml +++ b/.github/workflows/mdoc.yml @@ -16,7 +16,8 @@ jobs: - uses: actions/setup-java@v4 with: java-version: 11 - distribution: adopt + distribution: temurin + - uses: sbt/setup-sbt@v1 - uses: olafurpg/setup-gpg@v3 - run: sbt '++2.12.19; docs/docusaurusPublishGhpages' env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c548d379..ad74b30b1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,9 @@ jobs: - uses: actions/setup-java@v4 with: java-version: 11 - distribution: adopt + distribution: temurin + cache: sbt + - uses: sbt/setup-sbt@v1 - uses: olafurpg/setup-gpg@v3 - name: Publish ${{ github.ref }} run: sbt ci-release