Skip to content

Commit

Permalink
Add support for coursier --jvm-index in workflows using java
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Sep 26, 2023
1 parent 6f1c211 commit b85ac99
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/binary-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
type: string
required: false
default: 11
java-index:
type: string
required: false
default: ''
run-scheduled-in-forks:
type: boolean
required: false
Expand Down Expand Up @@ -40,6 +44,7 @@ jobs:
uses: coursier/setup-action@v1
with:
jvm: adoptium:${{ inputs.java }}
jvm-index: ${{ inputs.java-index }}

- name: Binary Compatibility
run: sbt +mimaReportBinaryIssues
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/cmd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
type: string
required: false
default: "11"
java-index:
type: string
required: false
default: ''
scala:
type: string
required: false
Expand Down Expand Up @@ -123,6 +127,7 @@ jobs:
uses: coursier/setup-action@v1
with:
jvm: adoptium:${{ matrix.java }}
jvm-index: ${{ inputs.java-index }}

- name: Print helpful configs and files and show environment
run: |
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
type: string
required: false
default: 11
java-index:
type: string
required: false
default: ''
cmd:
type: string
required: false
Expand Down Expand Up @@ -50,6 +54,7 @@ jobs:
uses: coursier/setup-action@v1
with:
jvm: adoptium:${{ inputs.java }}
jvm-index: ${{ inputs.java-index }}

- name: Publish artifacts
run: ${{ inputs.cmd }}
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Every matrix dimension will be access by environment variable like `MATRIX_$(upp
| ref | 2.0.0 | :heavy_minus_sign: | '' | Branch, tag or SHA for checkout |
| cmd | 2.0.0 | :exclamation: | - | Running command |
| java | 2.0.0 | :heavy_minus_sign: | 11 | _AdoptJDK_ version (space/comma delimited list) |
| java-index | 3.3.1 | :heavy_minus_sign: | '' | URL to JVM index source file |
| scala | 2.0.0 | :heavy_minus_sign: | '' | _Scala_ version (space/comma delimited list) |
| add-dimensions | 2.0.0 | :heavy_minus_sign: | '' | Other matrix dimensions (json object) |
| include | 2.0.0 | :heavy_minus_sign: | [] | Matrix include's (json object array) |
Expand All @@ -63,6 +64,7 @@ Every matrix dimension will be access by environment variable like `MATRIX_$(upp
uses: playframework/.github/.github/workflows/cmd.yml@v3
with:
java: 17, 11
java-index: https://url/of/your/index.json
scala: 2.12.18, 2.13.12, 3.3.1
add-dimensions: >-
{
Expand Down Expand Up @@ -93,6 +95,7 @@ This workflow is used for publishing snapshots artifacts to [Sonatype Snapshots]
|-------------------|-------|--------------------|----------------|---------------------------------|
| ref | 2.0.0 | :heavy_minus_sign: | '' | Branch, tag or SHA for checkout |
| java | 1.0.0 | :heavy_minus_sign: | 11 | _AdoptJDK_ version |
| java-index | 3.3.1 | :heavy_minus_sign: | '' | URL to JVM index source file |
| cmd | 3.3.0 | :heavy_minus_sign: | sbt ci-release | Running command |
| gradle-build-root | 3.3.0 | :heavy_minus_sign: | '' | Directory for Gradle builds |

Expand Down Expand Up @@ -122,6 +125,7 @@ This workflow is used for validate binary compatibility the current version.
|------------------------|-------|--------------------|---------|---------------------------------|
| ref | 2.0.0 | :heavy_minus_sign: | '' | Branch, tag or SHA for checkout |
| java | 1.0.0 | :heavy_minus_sign: | 11 | _AdoptJDK_ version |
| java-index | 3.3.1 | :heavy_minus_sign: | '' | URL to JVM index source file |
| run-scheduled-in-forks | 3.1.1 | :heavy_minus_sign: | false | Run by schedule in fork |

**How to use**:
Expand Down

0 comments on commit b85ac99

Please sign in to comment.