Update scala3-compiler, scala3-library to 3.3.1 (#168) #372
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: CI | |
on: | |
pull_request: | |
branches: ['**'] | |
push: | |
branches: ['**'] | |
tags: [v*] | |
# release: | |
# types: [published] | |
jobs: | |
build: | |
name: Build and Test | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'sbt/sbt-jni' | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
java: [8, 11, 17] | |
distribution: [temurin] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/cache-action@v6 | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: ${{ matrix.distribution }} | |
java-version: ${{ matrix.java }} | |
- run: python3 -m pip install meson ninja | |
- name: Check formatting | |
run: sbt scalafmtCheckAll | |
- name: Build project | |
run: sbt test-plugin | |
publish: | |
name: Publish Artifacts | |
needs: [build] | |
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')) | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
java: [8] | |
distribution: [temurin] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: coursier/cache-action@v6 | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: ${{ matrix.distribution }} | |
java-version: ${{ matrix.java }} | |
- name: Release | |
run: sbt ci-release | |
env: | |
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | |
PGP_SECRET: ${{ secrets.PGP_SECRET }} | |
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | |
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} | |
if: ${{ env.SONATYPE_PASSWORD != '' && env.SONATYPE_USERNAME != '' }} |