Skip to content

Commit

Permalink
Use setup-sbt
Browse files Browse the repository at this point in the history
  • Loading branch information
eed3si9n committed Jun 23, 2024
1 parent 6211b85 commit 3a90d90
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,27 @@ jobs:
include:
- os: ubuntu-latest
java: 8
distribution: zulu
jobtype: 1
- os: ubuntu-latest
java: 11
distribution: temurin
jobtype: 2
- os: ubuntu-latest
java: 17
distribution: temurin
jobtype: 2
- os: ubuntu-latest
java: 21
distribution: temurin
jobtype: 2
- os: macos-latest
java: 11
distribution: temurin
jobtype: 2
- os: windows-latest
java: 8
distribution: zulu
jobtype: 2
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -39,15 +45,11 @@ jobs:
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: temurin
distribution: "${{ matrix.distribution }}"
java-version: "${{ matrix.java }}"
cache: sbt
- if: ${{ matrix.os == 'macos-latest' }}
run: |
mkdir -p "$HOME/bin/"
curl -sL https://raw.githubusercontent.com/sbt/sbt/v1.9.9/sbt > "$HOME/bin/sbt"
export PATH="$PATH:$HOME/bin"
chmod +x "$HOME/bin/sbt"
- name: Setup sbt
uses: sbt/setup-sbt@v1
- name: Build and test (1)
if: ${{ matrix.jobtype == 1 }}
shell: bash
Expand Down

0 comments on commit 3a90d90

Please sign in to comment.