Switch to using actions/setup-java@v2

This commit is contained in:
Eugene Yokota 2021-10-16 15:55:22 -04:00
parent b795b622d7
commit 9d9016f4cf
1 changed files with 21 additions and 11 deletions

View File

@ -10,31 +10,40 @@ jobs:
matrix: matrix:
include: include:
- os: ubuntu-latest - os: ubuntu-latest
java: "17.0-custom=tgz+https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17%2B35/OpenJDK17-jdk_x64_linux_hotspot_17_35.tar.gz" java: 17
distribution: temurin
jobtype: 1 jobtype: 1
- os: ubuntu-latest - os: ubuntu-latest
java: "17.0-custom=tgz+https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17%2B35/OpenJDK17-jdk_x64_linux_hotspot_17_35.tar.gz" java: 17
distribution: temurin
jobtype: 2 jobtype: 2
- os: ubuntu-latest - os: ubuntu-latest
java: "17.0-custom=tgz+https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17%2B35/OpenJDK17-jdk_x64_linux_hotspot_17_35.tar.gz" java: 17
distribution: temurin
jobtype: 3 jobtype: 3
- os: ubuntu-latest - os: ubuntu-latest
java: "17.0-custom=tgz+https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17%2B35/OpenJDK17-jdk_x64_linux_hotspot_17_35.tar.gz" java: 17
distribution: temurin
jobtype: 4 jobtype: 4
- os: ubuntu-latest - os: ubuntu-latest
java: "17-custom=tgz+https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17%2B35/OpenJDK17-jdk_x64_linux_hotspot_17_35.tar.gz" java: 17
distribution: temurin
jobtype: 5 jobtype: 5
- os: ubuntu-latest - os: ubuntu-latest
java: "adopt@1.8" java: 8
distribution: adopt
jobtype: 6 jobtype: 6
- os: ubuntu-latest - os: ubuntu-latest
java: "adopt@1.8" java: 8
distribution: adopt
jobtype: 7 jobtype: 7
- os: macos-latest - os: macos-latest
java: "adopt@1.8" java: 8
distribution: adopt
jobtype: 8 jobtype: 8
- os: windows-latest - os: windows-latest
java: "adopt@1.8" java: 8
distribution: adopt
jobtype: 9 jobtype: 9
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
env: env:
@ -69,9 +78,10 @@ jobs:
repository: sbt/zinc repository: sbt/zinc
ref: develop ref: develop
path: zinc path: zinc
- name: Setup - name: Setup JDK
uses: olafurpg/setup-scala@v13 uses: actions/setup-java@v2
with: with:
distribution: "${{ matrix.distribution }}"
java-version: "${{ matrix.java }}" java-version: "${{ matrix.java }}"
- name: Set up Python 3.7 - name: Set up Python 3.7
uses: actions/setup-python@v2 uses: actions/setup-python@v2