Add upstream repo support for Windows API calls via JDK foreign API stuff #41
Workflow file for this run
This file contains hidden or 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: CI | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*" | |
pull_request: | |
jobs: | |
test: | |
name: Test ${{ matrix.OS }} | |
runs-on: ${{ matrix.OS }} | |
strategy: | |
fail-fast: false | |
matrix: | |
OS: ["windows-latest"] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/cache-action@v6.4 | |
- uses: coursier/setup-action@v1 | |
with: | |
jvm: "23" | |
- name: Test | |
run: ./mill __.test | |
- name: Publish locally | |
run: ./mill __.publishLocal # This ensures that javadoc generation succeeds in particular | |
publish: | |
if: github.event_name == 'push' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/cache-action@v6.4 | |
- uses: coursier/setup-action@v1 | |
with: | |
jvm: "23" | |
- name: Publish | |
run: ./mill mill.scalalib.PublishModule/ --sonatypeUri https://s01.oss.sonatype.org/service/local --sonatypeSnapshotUri https://s01.oss.sonatype.org/content/repositories/snapshots | |
env: | |
MILL_PGP_SECRET_BASE64: ${{ secrets.PUBLISH_SECRET_KEY }} | |
MILL_PGP_PASSPHRASE: ${{ secrets.PUBLISH_SECRET_KEY_PASSWORD }} | |
MILL_SONATYPE_USERNAME: ${{ secrets.PUBLISH_USER }} | |
MILL_SONATYPE_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }} |