Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to sbt-typelevel #2857

Merged
merged 18 commits into from
Apr 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 56 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ on:
branches: [series/3.*]
push:
branches: [series/3.*]
tags: [v*]
djspiewak marked this conversation as resolved.
Show resolved Hide resolved

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JABBA_INDEX: 'https://github.com/typelevel/jdk-index/raw/main/index.json'

jobs:
build:
Expand All @@ -24,25 +24,21 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
scala: [3.0.2, 2.12.15, 2.13.7]
java:
- temurin@8
- temurin@11
- temurin@17
- graal_21.3.0@11
java: [temurin@8, temurin@11, temurin@17, graalvm@11]
ci: [ciJVM, ciJS, ciFirefox, ciChrome]
exclude:
- scala: 3.0.2
java: temurin@11
- scala: 3.0.2
java: temurin@17
- scala: 3.0.2
java: graal_21.3.0@11
java: graalvm@11
- scala: 2.12.15
java: temurin@11
- scala: 2.12.15
java: temurin@17
- scala: 2.12.15
java: graal_21.3.0@11
java: graalvm@11
- os: windows-latest
scala: 3.0.2
- os: macos-latest
Expand All @@ -64,7 +60,7 @@ jobs:
- ci: ciJS
java: temurin@17
- ci: ciJS
java: graal_21.3.0@11
java: graalvm@11
- os: windows-latest
ci: ciJS
- os: macos-latest
Expand All @@ -74,7 +70,7 @@ jobs:
- ci: ciFirefox
java: temurin@17
- ci: ciFirefox
java: graal_21.3.0@11
java: graalvm@11
- os: windows-latest
ci: ciFirefox
- os: macos-latest
Expand All @@ -84,13 +80,13 @@ jobs:
- ci: ciChrome
java: temurin@17
- ci: ciChrome
java: graal_21.3.0@11
java: graalvm@11
- os: windows-latest
ci: ciChrome
- os: macos-latest
ci: ciChrome
- os: windows-latest
java: graal_21.3.0@11
java: graalvm@11
runs-on: ${{ matrix.os }}
steps:
- name: Ignore line ending differences in git
Expand All @@ -99,37 +95,73 @@ jobs:
run: git config --global core.autocrlf false

- name: Checkout current branch (full)
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Download Java (temurin@8)
id: download-java-temurin-8
if: matrix.java == 'temurin@8'
uses: typelevel/download-java@v1
with:
distribution: temurin
java-version: 8

- name: Setup Java (temurin@8)
if: matrix.java == 'temurin@8'
uses: actions/setup-java@v2
with:
distribution: temurin
distribution: jdkfile
java-version: 8
jdkFile: ${{ steps.download-java-temurin-8.outputs.jdkFile }}

- name: Download Java (temurin@11)
id: download-java-temurin-11
if: matrix.java == 'temurin@11'
uses: typelevel/download-java@v1
with:
distribution: temurin
java-version: 11

- name: Setup Java (temurin@11)
if: matrix.java == 'temurin@11'
uses: actions/setup-java@v2
with:
distribution: temurin
distribution: jdkfile
java-version: 11
jdkFile: ${{ steps.download-java-temurin-11.outputs.jdkFile }}

- name: Download Java (temurin@17)
id: download-java-temurin-17
if: matrix.java == 'temurin@17'
uses: typelevel/download-java@v1
with:
distribution: temurin
java-version: 17

- name: Setup Java (temurin@17)
if: matrix.java == 'temurin@17'
uses: actions/setup-java@v2
with:
distribution: temurin
distribution: jdkfile
java-version: 17
jdkFile: ${{ steps.download-java-temurin-17.outputs.jdkFile }}

- name: Setup GraalVM (graal_21.3.0@11)
if: matrix.java == 'graal_21.3.0@11'
uses: DeLaGuardo/[email protected]
- name: Download Java (graalvm@11)
id: download-java-graalvm-11
if: matrix.java == 'graalvm@11'
uses: typelevel/download-java@v1
with:
graalvm: 21.3.0
java: java11
distribution: graalvm
java-version: 11

- name: Setup Java (graalvm@11)
if: matrix.java == 'graalvm@11'
uses: actions/setup-java@v2
with:
distribution: jdkfile
java-version: 11
jdkFile: ${{ steps.download-java-graalvm-11.outputs.jdkFile }}

- name: Cache sbt
uses: actions/cache@v2
Expand All @@ -156,14 +188,14 @@ jobs:

- name: Check that workflows are up to date
shell: bash
run: sbt ++${{ matrix.scala }} githubWorkflowCheck
run: sbt '++${{ matrix.scala }}' 'project /' githubWorkflowCheck

- shell: bash
run: sbt ++${{ matrix.scala }} '${{ matrix.ci }}'
run: sbt '++${{ matrix.scala }}' '${{ matrix.ci }}'

- if: (matrix.scala == '2.13.7' || matrix.scala == '3.0.2') && matrix.ci == 'ciJVM'
shell: bash
run: sbt ++${{ matrix.scala }} docs/mdoc
run: sbt '++${{ matrix.scala }}' docs/mdoc

- name: Test Example JVM App Within Sbt
if: matrix.ci == 'ciJVM' && matrix.os == 'ubuntu-latest'
Expand Down
Loading