Skip to content

Commit

Permalink
use setup-java instead of deprecated olafurpg/setup-scala
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Oct 22, 2023
1 parent 3dea845 commit 262ee44
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ jobs:

steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v10
- uses: actions/setup-java@v3
with:
java-version: 8
distribution: adopt
- name: Mount caches
uses: actions/cache@v2
with:
Expand Down Expand Up @@ -47,9 +48,10 @@ jobs:

steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v10
- uses: actions/setup-java@v3
with:
java-version: 11
distribution: adopt
- name: Mount caches
uses: actions/cache@v2
with:
Expand All @@ -58,17 +60,22 @@ jobs:
~/.ivy2/cache
~/.cache/coursier
key: ${{ runner.os }}-sbt-${{ hashFiles('**/*.sbt') }}
- name: download sbt
run: |
curl -sL https://raw.githubusercontent.com/dwijnand/sbt-extras/7b70bbfc1cbe04172b5299ac092050d78d615a5a/sbt -o sbt
chmod +x ./sbt
shell: bash
- name: Compile and run scripted tests with older version
if: ${{ matrix.scripted-sbt != 'project' }}
env:
SCRIPTED_SBT: ${{ matrix.scripted-sbt }}
run: |
sbt "set scriptedSbt := \"$SCRIPTED_SBT\"" scripted
./sbt "set scriptedSbt := \"$SCRIPTED_SBT\"" scripted
shell: bash
- name: Compile and run scripted tests with project version
if: ${{ matrix.scripted-sbt == 'project' }}
run: |
sbt "set scriptedSbt := sbtVersion.value" scripted
./sbt "set scriptedSbt := sbtVersion.value" scripted
shell: bash
# Single final job for mergify.
ci-passed:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ jobs:
~/.ivy2/cache
~/.cache/coursier
key: ${{ runner.os }}-sbt-docs-${{ hashFiles('**/*.sbt') }}
- uses: actions/setup-java@v1
- uses: actions/setup-java@v3
with:
java-version: 8
distribution: adopt
- name: Publish ${{ github.ref }}
run: sbt ci-release
env:
Expand Down

0 comments on commit 262ee44

Please sign in to comment.