Skip to content

Update semanticdb-scalac to 4.8.13 #1026

Update semanticdb-scalac to 4.8.13

Update semanticdb-scalac to 4.8.13 #1026

Workflow file for this run

name: Build and Release
on:
push:
pull_request:
workflow_dispatch:
jobs:
test:
# don't build dependabot branches on push, we already build them on pull request
if: github.event != 'push' || !startsWith(github.ref, 'refs/heads/dependabot')
strategy:
fail-fast: false
matrix:
java-version: [8, 11]
buildcmd:
- ci/test-mill-release.sh
- ci/test-mill-dev.sh
# bootstrap tests
- ci/test-mill-bootstrap-0.sh
- ci/test-mill-bootstrap-1.sh
# unit and module tests
- ./mill -i -k "{main,scalalib,scalajslib,scalanativelib,testrunner,bsp}.__.test"
# additional integration tests
- ./mill -i -k "integration.{local,forked,forked-server}"
# integrtion tests of thirdparty repos
- ./mill -i -k "integration.thirdparty.{local,forked}"
# contrib tests
- ./mill -i -k "contrib._.test"
- ./mill -i docs.antora.githubPages
include:
# Just some reporting to enable reasoning about library upgrades
- java-version: 8
buildcmd: |
./mill -i -k __.ivyDepsTree
./mill -i -k __.ivyDepsTree --withRuntime true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: temurin
- name: Prepare git config
run: |
git config --add user.name "Mill GithHub Actions"
git config --add user.email "mill-ci@localhost"
- name: Run '${{ matrix.buildcmd }}'
run: ${{ matrix.buildcmd }}
test-bin-compat:
# don't build dependabot branches on push, we already build them on pull request
if: github.event != 'push' || !startsWith(github.ref, 'refs/heads/dependabot')
strategy:
fail-fast: false
matrix:
java-version: [8, 11]
buildcmd:
- ./mill -i -k __.mimaReportBinaryIssues
runs-on: ubuntu-latest
# when doing milestone builds, this may be true
continue-on-error: false
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: temurin
- name: Prepare git config
run: |
git config --add user.name "Mill GithHub Actions"
git config --add user.email "mill-ci@localhost"
- name: Run '${{ matrix.buildcmd }}'
run: ${{ matrix.buildcmd }}
test-windows:
# don't build dependabot branches on push, we already build them on pull request
if: github.event != 'push' || !startsWith(github.ref, 'refs/heads/dependabot')
strategy:
fail-fast: false
matrix:
java-version: [8, 11]
buildcmd:
- cmd /C %GITHUB_WORKSPACE%\ci\mill.bat -i -d -k "{__.publishLocal,assembly,__.compile}"
- cmd /C %GITHUB_WORKSPACE%\ci\mill.bat -i -d -k "{main,scalalib,scalajslib,bsp}.__.test"
- cmd /C %GITHUB_WORKSPACE%\ci\mill.bat -i -d -k "integration.{local,forked,forked-server}"
- cmd /C %GITHUB_WORKSPACE%\ci\mill.bat -i -d -k "integration.thirdparty.{local,forked}"
- cmd /C %GITHUB_WORKSPACE%\ci\mill.bat -i -d -k "contrib.__.test"
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java-version }}
distribution: temurin
- name: Run '${{ matrix.buildcmd }}'
run: ${{ matrix.buildcmd }}
publish-sonatype:
# when in master repo, publish all tags and manual runs from 0.10.x branch
if: github.repository == 'com-lihaoyi/mill' && (startsWith( github.ref, 'refs/tags/') || (github.ref == 'refs/heads/0.10.x' && github.event_name == 'workflow_dispatch' ) )
needs: [test, test-windows, test-bin-compat]
runs-on: ubuntu-latest
# only run one publish job for the same sha at the same time
# e.g. when a main-branch push is also tagged
concurrency: publish-sonatype-${{ github.sha }}
env:
SONATYPE_PGP_SECRET: ${{ secrets.SONATYPE_PGP_SECRET }}
SONATYPE_DEPLOY_USER: ${{ secrets.SONATYPE_DEPLOY_USER }}
SONATYPE_DEPLOY_PASSWORD: ${{ secrets.SONATYPE_DEPLOY_PASSWORD }}
SONATYPE_PGP_PASSWORD: ${{ secrets.SONATYPE_PGP_PASSWORD }}
LANG: "en_US.UTF-8"
LC_MESSAGES: "en_US.UTF-8"
LC_ALL: "en_US.UTF-8"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v3
with:
java-version: 8
distribution: temurin
- run: ci/release-maven.sh
release-github:
# when in master repo, publish all tags and manual runs from 0.10.x branch
if: github.repository == 'com-lihaoyi/mill' && (startsWith( github.ref, 'refs/tags/') || (github.ref == 'refs/heads/0.10.x' && github.event_name == 'workflow_dispatch' ) )
needs: publish-sonatype
runs-on: ubuntu-latest
env:
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: coursier/cache-action@v6
- uses: actions/setup-java@v3
with:
java-version: 8
distribution: temurin
- run: ./mill -i uploadToGithub $REPO_ACCESS_TOKEN