Skip to content

Commit

Permalink
YML: use setup-java instead of setup-scala
Browse files Browse the repository at this point in the history
  • Loading branch information
kitbellew committed Dec 10, 2022
1 parent 1d711d4 commit 0c23a08
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 10 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,20 @@ jobs:
strategy:
fail-fast: false
matrix:
java: [[email protected], [email protected]]
java: [ '8', '11' ]
os: [windows-latest, ubuntu-latest]
exclude:
- os: windows-latest
java: [email protected]
java: '8'
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- name: Set up JVM
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'sbt'
# https://github.com/dwijnand/sbt-dynver#setup
- run: git fetch --tags --unshallow -f
- run:
Expand All @@ -41,7 +44,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: 'sbt'
- run: ./scalafmt --test
- run: yarn install
- run: yarn format-check
Expand Down Expand Up @@ -76,9 +83,13 @@ jobs:
env: ${{ matrix.env }}
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
java-version: [email protected]
version: 'latest'
java-version: ${{ matrix.java }}
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- if: matrix.libc == 'musl'
name: Install musl bundle
run: |
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v13
- uses: olafurpg/setup-gpg@v3
# https://github.com/dwijnand/sbt-dynver#setup
- run: git fetch --tags --unshallow -f
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: 'sbt'
- name: Publish ${{ github.ref }}
run: sbt ci-release docs/docusaurusPublishGhpages
env:
Expand Down

0 comments on commit 0c23a08

Please sign in to comment.