-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add JDK's and OS'es to GitHub actions CI matrix
- Loading branch information
1 parent
14aca8c
commit 27c82f4
Showing
2 changed files
with
86 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,11 +22,23 @@ jobs: | |
name: Build and Test | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
scala: [2.12.18] | ||
java: [temurin@8] | ||
java: [temurin@8, temurin@11, temurin@17, temurin@21] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Ignore line ending differences in git | ||
if: contains(runner.os, 'windows') | ||
shell: bash | ||
run: git config --global core.autocrlf false | ||
|
||
- name: Configure pagefile for Windows | ||
if: contains(runner.os, 'windows') | ||
uses: al-cheb/[email protected] | ||
with: | ||
minimum-size: 2GB | ||
maximum-size: 8GB | ||
|
||
- name: Checkout current branch (full) | ||
uses: actions/checkout@v4 | ||
with: | ||
|
@@ -40,12 +52,39 @@ jobs: | |
java-version: 8 | ||
cache: sbt | ||
|
||
- name: Setup Java (temurin@11) | ||
if: matrix.java == 'temurin@11' | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
cache: sbt | ||
|
||
- name: Setup Java (temurin@17) | ||
if: matrix.java == 'temurin@17' | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
cache: sbt | ||
|
||
- name: Setup Java (temurin@21) | ||
if: matrix.java == 'temurin@21' | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 21 | ||
cache: sbt | ||
|
||
- name: Check that workflows are up to date | ||
shell: bash | ||
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck | ||
|
||
- run: sbt '++ ${{ matrix.scala }}' test scripted | ||
- shell: bash | ||
run: sbt '++ ${{ matrix.scala }}' test scripted | ||
|
||
- name: Compress target directories | ||
shell: bash | ||
run: tar cf targets.tar target project/target | ||
|
||
- name: Upload target directories | ||
|
@@ -65,6 +104,17 @@ jobs: | |
java: [temurin@8] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Ignore line ending differences in git | ||
if: contains(runner.os, 'windows') | ||
run: git config --global core.autocrlf false | ||
|
||
- name: Configure pagefile for Windows | ||
if: contains(runner.os, 'windows') | ||
uses: al-cheb/[email protected] | ||
with: | ||
minimum-size: 2GB | ||
maximum-size: 8GB | ||
|
||
- name: Checkout current branch (full) | ||
uses: actions/checkout@v4 | ||
with: | ||
|
@@ -78,6 +128,30 @@ jobs: | |
java-version: 8 | ||
cache: sbt | ||
|
||
- name: Setup Java (temurin@11) | ||
if: matrix.java == 'temurin@11' | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 11 | ||
cache: sbt | ||
|
||
- name: Setup Java (temurin@17) | ||
if: matrix.java == 'temurin@17' | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 17 | ||
cache: sbt | ||
|
||
- name: Setup Java (temurin@21) | ||
if: matrix.java == 'temurin@21' | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: temurin | ||
java-version: 21 | ||
cache: sbt | ||
|
||
- name: Download target directories (2.12.18) | ||
uses: actions/download-artifact@v3 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters