Skip to content

Split Kotlin and Java compilation messages with count (#102) #312

Split Kotlin and Java compilation messages with count (#102)

Split Kotlin and Java compilation messages with count (#102) #312

Workflow file for this run

on:
push:
branches:
- main
tags:
- '**'
pull_request:
# cancel older runs of a pull request;
# this will not cancel anything for normal git pushes
concurrency:
group: cancel-old-pr-runs-${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
java-version: [8, 11, 17]
targets:
- __.publishLocal $(pwd)/testRepo
- "main[_].__.test"
- "itest[0.11.0].test"
- "itest[0.10.11].test"
- "itest[0.10.3].test"
- "itest[0.10.0].test"
- "itest[0.9.12].test"
- "itest[0.9.3].test"
- "itest[0.8.0].test"
- "itest[0.7.4].test"
- "itest[0.7.0].test"
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.os == 'windows-latest' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: temurin
- run: ./millw -i ${{ matrix.targets }}
- run: ./millw __.scoverage.xmlReport
- name: Upload scoverage reports to codecov.io
uses: codecov/codecov-action@v3
with:
files: ./out/api/0.11/scoverage/xmlReport.dest/scoverage.xml,./out/api/0.10/scoverage/xmlReport.dest/scoverage.xml,./out/api/0.9/scoverage/xmlReport.dest/scoverage.xml,./out/api/0.7/scoverage/xmlReport.dest/scoverage.xml,./out/worker/0.11/scoverage/xmlReport.dest/scoverage.xml,./out/worker/0.10/scoverage/xmlReport.dest/scoverage.xml,./out/worker/0.9/scoverage/xmlReport.dest/scoverage.xml,./out/worker/0.7/scoverage/xmlReport.dest/scoverage.xml,./out/main/0.11.0/scoverage/xmlReport.dest/scoverage.xml,./out/main/0.10/scoverage/xmlReport.dest/scoverage.xml,./out/main/0.9/scoverage/xmlReport.dest/scoverage.xml,./out/main/0.7/scoverage/xmlReport.dest/scoverage.xml
continue-on-error: true
publish:
needs: build
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
java-version: 8
distribution: temurin
- run: ./millw -i __.publishLocal $(pwd)/testRepo
- name: Setup GPG secrets for publish
run: |
gpg --version
cat <(echo "${{ secrets.GPG_SECRET_KEY }}") | base64 --decode | gpg --batch --import
gpg --list-secret-keys --keyid-format LONG
- name: Publish to Maven Central
run: ./millw -i mill.scalalib.PublishModule/publishAll --sonatypeCreds "${{ secrets.SONATYPE_CREDS }}" --gpgArgs "--passphrase=${{ secrets.GPG_SECRET_KEY_PASS }},--batch,--yes,-a,-b,--pinentry-mode,loopback" --publishArtifacts __.publishArtifacts --readTimeout 600000 --release true --signed true