Skip to content

Commit

Permalink
Overhauling github workflows to support publishing full compatibility…
Browse files Browse the repository at this point in the history
… artifacts
  • Loading branch information
Devon Stewart committed Feb 5, 2021
1 parent ff628fd commit 39a65b5
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 78 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,22 @@ on:
- release/*

jobs:
scala-2_12:
scala:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11' ]
scala: [
{ version: '2.12.13' },
{ version: '2.12.12' },
{ version: '2.12.11' },
{ version: '2.12.10' },
{ version: '2.13.4' },
{ version: '2.13.3' },
{ version: '2.13.2' },
{ version: '2.13.1' },
{ version: '2.13.0' }
]
steps:
- name: checkout the repo
uses: actions/checkout@v2
Expand All @@ -23,23 +37,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
java-version: ${{ matrix.java }}

- name: run tests
run: sbt ++2.12.10 test

scala-2_13:
runs-on: ubuntu-latest
steps:
- name: checkout the repo
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11

- name: run tests
run: sbt ++2.13.3 test
run: sbt ++${{ matrix.scala.version }} test
36 changes: 17 additions & 19 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,22 @@ on:
- '*.md'

jobs:
scala-2_12:
scala:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11' ]
scala: [
{ version: '2.12.13' },
{ version: '2.12.12' },
{ version: '2.12.11' },
{ version: '2.12.10' },
{ version: '2.13.4' },
{ version: '2.13.3' },
{ version: '2.13.2' },
{ version: '2.13.1' },
{ version: '2.13.0' }
]
steps:
- name: checkout the repo
uses: actions/checkout@v2
Expand All @@ -19,23 +33,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
java-version: ${{ matrix.java }}

- name: run tests
run: sbt ++2.12.10 test

scala-2_13:
runs-on: ubuntu-latest
steps:
- name: checkout the repo
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11

- name: run tests
run: sbt ++2.13.3 test
run: sbt ++${{ matrix.scala.version }} test
57 changes: 17 additions & 40 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,22 @@ on:
required: true

jobs:
scala-2_12:
scala:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11' ]
scala: [
{ version: '2.12.13' },
{ version: '2.12.12' },
{ version: '2.12.11' },
{ version: '2.12.10' },
{ version: '2.13.4' },
{ version: '2.13.3' },
{ version: '2.13.2' },
{ version: '2.13.1' },
{ version: '2.13.0' }
]
steps:
- name: checkout the repo
uses: actions/checkout@v2
Expand All @@ -22,7 +36,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11
java-version: ${{ matrix.java }}

- name: Import GPG key
id: import_gpg
Expand All @@ -39,45 +53,8 @@ jobs:
echo "email: ${{ steps.import_gpg.outputs.email }}"
- name: publish release
run: sbt ++2.12.10 publishSigned
run: sbt ++${{ matrix.scala.version }} publishSigned
env:
RELEASE_VERSION: ${{ github.event.inputs.version }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

scala-2_13:
runs-on: ubuntu-latest
steps:
- name: checkout the repo
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 11

- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PGP_PASSPHRASE }}

- name: GPG user IDs
run: |
echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
echo "keyid: ${{ steps.import_gpg.outputs.keyid }}"
echo "name: ${{ steps.import_gpg.outputs.name }}"
echo "email: ${{ steps.import_gpg.outputs.email }}"
- name: run tests
run: sbt ++2.13.3 test

- name: publish release
run: sbt ++2.13.3 publishSigned
env:
RELEASE_VERSION: ${{ github.event.inputs.version }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}

0 comments on commit 39a65b5

Please sign in to comment.