Update sbt-assembly to 2.2.0 in series/3.x #981
Workflow file for this run
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
name: build | |
on: | |
pull_request: | |
branches: ['series/*'] | |
push: | |
branches: ['series/*'] | |
tags: ["v[0-9]+*"] | |
jobs: | |
jvm-tests: | |
name: JVM / scala ${{ matrix.scala }}, jdk ${{ matrix.java }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 8, 11 ] | |
# WARN: build.sbt depends on this key path, as scalaVersion and | |
# crossScalaVersions is determined from it | |
scala: [ 2.12.15, 2.13.8, 3.1.2 ] | |
env: | |
CI: true | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: olafurpg/setup-scala@v10 | |
with: | |
java-version: "adopt@1.${{ matrix.java }}" | |
- name: Cache ivy2 | |
uses: actions/cache@v1 | |
with: | |
path: ~/.ivy2/cache | |
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | |
- name: Cache coursier (linux) | |
if: contains(runner.os, 'linux') | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cache/coursier/v1 | |
key: ${{ runner.os }}-sbt-coursier-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | |
- name: Cache sbt | |
uses: actions/cache@v1 | |
with: | |
path: ~/.sbt | |
key: ${{ runner.os }}-sbt-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | |
- name: sbt ci-jvm | |
run: ./.github/scripts/exec-sbt-command | |
env: | |
SCALA_VERSION: ${{ matrix.scala }} | |
PLATFORM: ${{ matrix.java }} | |
SBT_COMMAND: ci-jvm | |
js-tests: | |
name: JS / scala ${{ matrix.scala }}, jdk ${{ matrix.java }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
# WARN: build.sbt depends on this key path, as scalaVersion and | |
# crossScalaVersions is determined from it | |
include: | |
- { java: 8, scala: 2.12.15 } | |
- { java: 8, scala: 2.13.8 } | |
- { java: 8, scala: 3.1.2 } | |
env: | |
CI: true | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: olafurpg/setup-scala@v10 | |
with: | |
java-version: "adopt@1.${{ matrix.java }}" | |
- name: Cache ivy2 | |
uses: actions/cache@v1 | |
with: | |
path: ~/.ivy2/cache | |
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | |
- name: Cache coursier (linux) | |
if: contains(runner.os, 'linux') | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cache/coursier/v1 | |
key: ${{ runner.os }}-sbt-coursier-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | |
- name: Cache sbt | |
uses: actions/cache@v1 | |
with: | |
path: ~/.sbt | |
key: ${{ runner.os }}-sbt-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | |
- name: Setup NodeJS | |
uses: actions/[email protected] | |
with: | |
node-version: 14 | |
- name: sbt ci-js | |
run: | | |
./.github/scripts/exec-sbt-command | |
env: | |
SCALA_VERSION: ${{ matrix.scala }} | |
PLATFORM: ${{ matrix.java }} | |
SBT_COMMAND: ci-js | |
mima: | |
name: Mima / scala ${{ matrix.scala }}, jdk ${{ matrix.java }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { java: 8, scala: 2.12.15 } | |
- { java: 8, scala: 2.13.8 } | |
- { java: 8, scala: 3.1.2 } | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: olafurpg/setup-scala@v10 | |
with: | |
java-version: "adopt@1.${{ matrix.java }}" | |
- name: Cache ivy2 | |
uses: actions/cache@v1 | |
with: | |
path: ~/.ivy2/cache | |
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | |
- name: Cache coursier (linux) | |
if: contains(runner.os, 'linux') | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cache/coursier/v1 | |
key: ${{ runner.os }}-sbt-coursier-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | |
- name: Cache sbt | |
uses: actions/cache@v1 | |
with: | |
path: ~/.sbt | |
key: ${{ runner.os }}-sbt-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | |
- name: sbt mimaReportBinaryIssues | |
run: | | |
./.github/scripts/exec-sbt-command | |
env: | |
SCALA_VERSION: ${{ matrix.scala }} | |
SBT_COMMAND: mimaReportBinaryIssues | |
unidoc: | |
name: Unidoc / scala ${{ matrix.scala }}, jdk ${{ matrix.java }} | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { java: 8, scala: 2.13.8 } | |
# TODO: enable this after it works! | |
# - { java: 8, scala: 3.1.2 } | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: olafurpg/setup-scala@v10 | |
with: | |
java-version: "adopt@1.${{ matrix.java }}" | |
- name: Cache ivy2 | |
uses: actions/cache@v1 | |
with: | |
path: ~/.ivy2/cache | |
key: ${{ runner.os }}-sbt-ivy-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | |
- name: Cache coursier (linux) | |
if: contains(runner.os, 'linux') | |
uses: actions/cache@v1 | |
with: | |
path: ~/.cache/coursier/v1 | |
key: ${{ runner.os }}-sbt-coursier-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | |
- name: Cache sbt | |
uses: actions/cache@v1 | |
with: | |
path: ~/.sbt | |
key: ${{ runner.os }}-sbt-cache-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }} | |
- name: sbt unidoc | |
run: | | |
./.github/scripts/exec-sbt-command | |
env: | |
SCALA_VERSION: ${{ matrix.scala }} | |
SBT_COMMAND: unidoc | |
all_tests: | |
name: All Tests | |
needs: [ jvm-tests, js-tests, mima, unidoc ] | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Ack | |
run: | | |
echo "All done." | |
publish: | |
name: Publish to Sonatype | |
if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/series/3.x') | |
needs: [ all_tests ] | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 100 | |
- uses: olafurpg/setup-scala@v10 | |
with: | |
java-version: "[email protected]" | |
- name: Install GnuPG2 | |
run: | | |
./.github/scripts/setup-pgp | |
- name: .github/scripts/release | |
run: | | |
.github/scripts/release | |
env: | |
PGP_KEY_HEX: ${{ secrets.PGP_KEY_HEX }} | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
PUBLISH_STABLE_VERSION: false |