Update mill-main to 0.12.1 #505
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
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '**' | |
pull_request: | |
workflow_dispatch: | |
# 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, windows-latest] | |
java-version: [8, 11, 17] | |
runs-on: ${{ matrix.os }} | |
continue-on-error: ${{ matrix.os == 'windows-latest' }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/cache-action@v6 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: temurin | |
- run: ./millw -i findLatestMill --toFile MILL_DEV_VERSION | |
if: matrix.os != 'windows-latest' && github.event_name == 'workflow_dispatch' | |
- run: ./millw.bat -i findLatestMill --toFile MILL_DEV_VERSION | |
if: matrix.os == 'windows-latest' && github.event_name == 'workflow_dispatch' | |
- run: ./millw -i __.publishLocal testRepo | |
if: matrix.os != 'windows-latest' | |
- run: .\millw.bat -i __.publishLocal testRepo | |
if: matrix.os == 'windows-latest' | |
shell: cmd | |
- run: ./millw -i -k __.testCached | |
if: matrix.os != 'windows-latest' | |
- run: ./millw.bat -i -k __.testCached | |
if: matrix.os == 'windows-latest' | |
shell: cmd | |
- run: ./millw -i __.scoverage.xmlReport | |
if: matrix.os != 'windows-latest' | |
- run: .\millw.bat -i __.scoverage.xmlReport | |
if: matrix.os == 'windows-latest' | |
shell: cmd | |
- name: Upload scoverage reports to codecov.io | |
uses: codecov/codecov-action@v4 | |
with: | |
files: ./out/core/0.11/scoverage/xmlReport.dest/scoverage.xml,./out/core/0.10/scoverage/xmlReport.dest/scoverage.xml,./out/core/0.9/scoverage/xmlReport.dest/scoverage.xml,./out/core/0.7/scoverage/xmlReport.dest/scoverage.xml,./out/core/0.6/scoverage/xmlReport.dest/scoverage.xml | |
token: ${{ secrets.CODECOV_TOKEN }} | |
continue-on-error: true | |
checks: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/cache-action@v6 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 8 | |
distribution: temurin | |
- run: ./millw -i __.mimaReportBinaryIssues | |
publish: | |
needs: [build, checks] | |
if: github.repository == 'lefou/mill-vcs-version' && github.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
concurrency: publish-{{ github.sha }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/cache-action@v6 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: 8 | |
distribution: temurin | |
- run: ./millw -i findLatestMill --toFile MILL_DEV_VERSION | |
if: matrix.os != 'windows-latest' && github.event_name == 'workflow_dispatch' | |
- run: ./millw.bat -i findLatestMill --toFile MILL_DEV_VERSION | |
if: matrix.os == 'windows-latest' && github.event_name == 'workflow_dispatch' | |
- run: ./millw -i __.publishLocal $(pwd)/testRepo | |
if: matrix.os != 'windows-latest' | |
- run: .\millw.bat -i __.publishLocal %GITHUB_WORKSPACE%/testRepo | |
if: matrix.os == 'windows-latest' | |
shell: cmd | |
- 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 --awaitTimeout 600000 --release true --signed true | |
if: github.event_name != 'workflow_dispatch' | |
- name: Publish for Mill development version 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 __[$(<MILL_DEV_VERSION)].publishArtifacts --readTimeout 600000 --awaitTimeout 600000 --release true --signed true | |
if: github.event_name == 'workflow_dispatch' |