Skip to content

Commit

Permalink
scala versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tpolecat committed Jan 11, 2022
1 parent 0c8b1d9 commit 2f98a61
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
24 changes: 22 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.12.15]
scala: [2.12.15, 2.13.7, 3.1.0]
java: [temurin@11]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
scala: [2.12.15]
scala: [2.13.7]
java: [temurin@11]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -120,6 +120,26 @@ jobs:
tar xf targets.tar
rm targets.tar
- name: Download target directories (2.13.7)
uses: actions/download-artifact@v2
with:
name: target-${{ matrix.os }}-2.13.7-${{ matrix.java }}

- name: Inflate target directories (2.13.7)
run: |
tar xf targets.tar
rm targets.tar
- name: Download target directories (3.1.0)
uses: actions/download-artifact@v2
with:
name: target-${{ matrix.os }}-3.1.0-${{ matrix.java }}

- name: Inflate target directories (3.1.0)
run: |
tar xf targets.tar
rm targets.tar
- name: Import signing key
if: env.PGP_SECRET != '' && env.PGP_PASSPHRASE == ''
run: echo $PGP_SECRET | base64 -d | gpg --import
Expand Down
5 changes: 3 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ ThisBuild / githubWorkflowBuildPreamble +=
name = Some("Start up Postgres"),
)

ThisBuild / scalaVersion := scala213Version
ThisBuild / crossScalaVersions := Seq(scala212Version, scala213Version, scala30Version)

// This is used in a couple places. Might be nice to separate these things out.
lazy val postgisDep = "net.postgis" % "postgis-jdbc" % postGisVersion

Expand Down Expand Up @@ -63,8 +66,6 @@ lazy val buildSettings = Seq(
lazy val commonSettings =
compilerFlags ++
Seq(
scalaVersion := scala213Version,
crossScalaVersions := Seq(scala212Version, scala213Version, scala30Version),

// These sbt-header settings can't be set in ThisBuild for some reason
headerMappings := headerMappings.value + (HeaderFileType.scala -> HeaderCommentStyle.cppStyleLineComment),
Expand Down

0 comments on commit 2f98a61

Please sign in to comment.