Skip to content

Commit

Permalink
Add setup-sbt action
Browse files Browse the repository at this point in the history
Installs `sbt`. We need this because GitHub no longer includes `sbt` in its base images, so we have to set it up separately.

We can't use `guardian/setup-scala` because this mandates caching of `sbt` resources, which slows down builds in this workflow as seen in 137fd0a due to actions/setup-java#564
  • Loading branch information
JamieB-gu authored Dec 10, 2024
1 parent 7be8e84 commit d3016d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/reusable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ jobs:
with:
distribution: corretto
java-version: ${{ steps.establish_java_for_library_build.outputs.library_build_major_java_version }}
- uses: sbt/[email protected]
# - name: Debug MIMA assessment
# run: |
# sbt "show versionPolicyFindIssues"
Expand Down Expand Up @@ -268,6 +269,7 @@ jobs:
with:
distribution: corretto
java-version: ${{ needs.generate-version-update-commits.outputs.library_build_major_java_version }}
- uses: sbt/[email protected]
- name: Generate artifacts
run: |
cat << EndOfFile > sbt-commands.txt
Expand Down Expand Up @@ -417,6 +419,7 @@ jobs:
distribution: corretto
java-version: 17
cache: sbt # the issue described in https://github.com/actions/setup-java/pull/564 doesn't affect this step (no version.sbt)
- uses: sbt/[email protected]
- name: Release
env:
SONATYPE_TOKEN: ${{ secrets.SONATYPE_TOKEN }}
Expand Down

0 comments on commit d3016d0

Please sign in to comment.