Skip to content

Commit

Permalink
Add sbt to github action workflows, use ubuntu-latest (#1416)
Browse files Browse the repository at this point in the history
The new ubuntu images no longer install sbt by default. Also: stop using
ancient ubuntu versions.

This is a stop-gap until zio-sbt plugin is fixed.
  • Loading branch information
erikvanoosten authored Dec 12, 2024
1 parent 5e6e697 commit bb540bc
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/auto-approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
auto-approve:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: hmarr/[email protected]
if: github.actor == 'scala-steward'
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/benchs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
distribution: temurin
java-version: 21
check-latest: true
- name: Setup sbt
uses: sbt/setup-sbt@v1
- uses: VirtusLab/scala-cli-setup@main
- name: Use CI sbt jvmopts
shell: bash
Expand Down
16 changes: 14 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
distribution: corretto
java-version: '17'
check-latest: true
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Cache Dependencies
uses: coursier/cache-action@v6
- name: Check all code compiles
Expand All @@ -62,10 +64,12 @@ jobs:
distribution: corretto
java-version: '17'
check-latest: true
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Cache Dependencies
uses: coursier/cache-action@v6
- name: Check if the site workflow is up to date
run: sbt ciCheckGithubWorkflow
# - name: Check if the site workflow is up to date
# run: sbt ciCheckGithubWorkflow
- name: Lint
run: sbt lint
test:
Expand All @@ -88,6 +92,8 @@ jobs:
distribution: corretto
java-version: ${{ matrix.java }}
check-latest: true
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Cache Dependencies
uses: coursier/cache-action@v6
- name: Git Checkout
Expand All @@ -114,6 +120,8 @@ jobs:
distribution: corretto
java-version: '17'
check-latest: true
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Cache Dependencies
uses: coursier/cache-action@v6
- name: Generate Readme
Expand Down Expand Up @@ -188,6 +196,8 @@ jobs:
distribution: corretto
java-version: '17'
check-latest: true
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Cache Dependencies
uses: coursier/cache-action@v6
- name: Release
Expand Down Expand Up @@ -217,6 +227,8 @@ jobs:
distribution: corretto
java-version: '17'
check-latest: true
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Cache Dependencies
uses: coursier/cache-action@v6
- name: Setup NodeJs
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
distribution: temurin
java-version: 21
check-latest: true
- name: Setup sbt
uses: sbt/setup-sbt@v1
- uses: coursier/cache-action@v6
- uses: VirtusLab/scala-cli-setup@main
- name: Use CI sbt jvmopts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

jobs:
update_release_draft:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v6
env:
Expand Down

0 comments on commit bb540bc

Please sign in to comment.