Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update scala versions #318

Merged
merged 9 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ jobs:
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Check code formatting
run: ./sbt check
run: sbt check

compile:
runs-on: ubuntu-22.04
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
java: ['17']
scala: ['2.12.19', '2.13.13', '3.3.3']
java: ['11']
scala: ['2.12.20', '2.13.15', '3.3.4']
steps:
- name: Checkout current branch
uses: actions/[email protected]
Expand All @@ -54,16 +54,16 @@ jobs:
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Compile sources
run: ./sbt ++${{ matrix.scala }}! compileSources
run: sbt ++${{ matrix.scala }}! compileSources

test:
runs-on: ubuntu-22.04
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
java: ['8', '11', '17']
scala: ['2.12.19', '2.13.13', '3.3.3']
java: ['11', '17', '21']
scala: ['2.12.20', '2.13.15', '3.3.4']
steps:
- name: Checkout current branch
uses: actions/[email protected]
Expand All @@ -78,7 +78,7 @@ jobs:
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Run tests
run: ./sbt ++${{ matrix.scala }}! testAll
run: sbt ++${{ matrix.scala }}! testAll

publishLocal:
runs-on: ubuntu-22.04
Expand All @@ -95,7 +95,7 @@ jobs:
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Check that building packages works
run: ./sbt +publishLocal
run: sbt +publishLocal

website:
runs-on: ubuntu-22.04
Expand All @@ -112,7 +112,7 @@ jobs:
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Check Website Generation
run: ./sbt docs/compileDocs
run: sbt docs/compileDocs

ci:
runs-on: ubuntu-22.04
Expand All @@ -135,12 +135,12 @@ jobs:
uses: actions/[email protected]
with:
distribution: temurin
java-version: 8
java-version: 17
check-latest: true
- name: Cache scala dependencies
uses: coursier/cache-action@v6
- name: Release artifacts
run: ./sbt ci-release
run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
Expand Down
32 changes: 17 additions & 15 deletions .github/workflows/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# task and should be included in the git repository. Please do not edit it manually.

name: Website
'on':

on:
workflow_dispatch: {}
release:
types:
Expand All @@ -11,39 +12,40 @@ name: Website
branches:
- master
pull_request: {}

jobs:
build:
name: Build and Test
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: Git Checkout
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4.0.0
with:
fetch-depth: '0'
- name: Setup Scala
uses: actions/setup-java@v3.9.0
uses: actions/setup-java@v3.12.0
with:
distribution: temurin
java-version: 17
check-latest: true
- name: Check if the README file is up to date
run: sbt docs/checkReadme
run: sbt docs/checkReadme
- name: Check artifacts build process
run: sbt +publishLocal
run: sbt +publishLocal
- name: Check website build process
run: sbt docs/clean; sbt docs/buildWebsite
run: sbt docs/clean; sbt docs/buildWebsite
publish-docs:
name: Publish Docs
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: ${{ ((github.event_name == 'release') && (github.event.action == 'published')) || (github.event_name == 'workflow_dispatch') }}
steps:
- name: Git Checkout
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4.0.0
with:
fetch-depth: '0'
- name: Setup Scala
uses: actions/setup-java@v3.9.0
uses: actions/setup-java@v3.12.0
with:
distribution: temurin
java-version: 17
Expand All @@ -54,27 +56,27 @@ jobs:
node-version: 16.x
registry-url: https://registry.npmjs.org
- name: Publish Docs to NPM Registry
run: sbt docs/publishToNpm
run: sbt docs/publishToNpm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
generate-readme:
name: Generate README
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
if: ${{ (github.event_name == 'push') || ((github.event_name == 'release') && (github.event.action == 'published')) }}
steps:
- name: Git Checkout
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4.0.0
with:
ref: ${{ github.head_ref }}
fetch-depth: '0'
- name: Setup Scala
uses: actions/setup-java@v3.9.0
uses: actions/setup-java@v3.12.0
with:
distribution: temurin
java-version: 17
check-latest: true
- name: Generate Readme
run: sbt docs/generateReadme
run: sbt docs/generateReadme
- name: Commit Changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
Expand Down
9 changes: 4 additions & 5 deletions project/BuildHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@ object BuildHelper {
scalacOptions := stdOptions ++ extraOptions(scalaVersion.value, optimize = !isSnapshot.value),
semanticdbEnabled := scalaVersion.value == defaultScalaVersion,
semanticdbOptions ++= (if (scalaVersion.value != Scala3) List("-P:semanticdb:synthetics:on") else Nil),
semanticdbVersion := scalafixSemanticdb.revision,
ThisBuild / scalafixScalaBinaryVersion := CrossVersion.binaryScalaVersion(scalaVersion.value),
Compile / fork := true,
Test / fork := true,
Test / parallelExecution := true,
semanticdbVersion := scalafixSemanticdb.revision,
Compile / fork := true,
Test / fork := true,
Test / parallelExecution := true,
incOptions ~= (_.withLogRecompileOnMacro(false)),
autoAPIMappings := true,
buildInfoKeys := Seq[BuildInfoKey](organization, moduleName, name, version, scalaVersion, sbtVersion, isSnapshot),
Expand Down
Loading
Loading