Skip to content

Commit

Permalink
feat: support projectmatrix and support better crossbuilding
Browse files Browse the repository at this point in the history
extend welcome message based on build settings
add checkMima task and add to lint command
support custom jdk distributions in ci job
  • Loading branch information
ThijsBroersen committed Nov 27, 2024
1 parent 3fe9f88 commit cc8e5fc
Show file tree
Hide file tree
Showing 28 changed files with 2,082 additions and 399 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ jobs:
- name: Cache Dependencies
uses: coursier/cache-action@v6
- name: Check all code compiles
run: sbt +Test/compile
run: sbt Test/compile
- name: Check artifacts build process
run: sbt +publishLocal
run: sbt publishLocal
- name: Check website build process
run: sbt docs/clean; sbt docs/buildWebsite
lint:
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:
with:
fetch-depth: '0'
- name: Test
run: sbt +test
run: sbt test
update-readme:
name: Update README
runs-on: ubuntu-latest
Expand Down Expand Up @@ -196,6 +196,8 @@ jobs:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
CI_RELEASE: publishSigned
CI_SNAPSHOT_RELEASE: publish
release-docs:
name: Release Docs
runs-on: ubuntu-latest
Expand Down
236 changes: 213 additions & 23 deletions README.md

Large diffs are not rendered by default.

42 changes: 36 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ addCommandAlias("test", "scripted")

inThisBuild(
List(
name := "ZIO SBT",
startYear := Some(2022),
scalaVersion := Scala212,
crossScalaVersions := Seq(scalaVersion.value),
name := "ZIO SBT",
startYear := Some(2022),
scalaVersion := Scala212,
defaultCrossScalaVersions := Seq(Scala212),
developers := List(
Developer("khajavi", "Milad Khajavi", "khajavi@gmail.com", url("https://github.com/khajavi"))
),
checkMima / skip := true,
ciEnabledBranches := Seq("main")
)
)
Expand All @@ -27,13 +28,27 @@ lazy val root = project
publish / skip := true
)
.aggregate(
`zio-sbt-shared`,
`zio-sbt-githubactions`,
`zio-sbt-website`,
`zio-sbt-project`,
`zio-sbt-ecosystem`,
`zio-sbt-ci`,
`zio-sbt-tests`
)
.enablePlugins(ZioSbtCiPlugin)

lazy val `zio-sbt-shared` =
project
.settings(stdSettings())
.settings(
headerEndYear := Some(2024),
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
},
scriptedBufferLog := false
)
.enablePlugins(SbtPlugin)

lazy val `zio-sbt-tests` =
project
Expand All @@ -56,6 +71,20 @@ lazy val `zio-sbt-website` =
)
.enablePlugins(SbtPlugin)

lazy val `zio-sbt-project` =
project
.settings(stdSettings())
.settings(
headerEndYear := Some(2024),
scriptedLaunchOpts := {
scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
},
scriptedBufferLog := false
)
.enablePlugins(SbtPlugin)
.dependsOn(`zio-sbt-shared`)

lazy val `zio-sbt-ecosystem` =
project
.settings(stdSettings())
Expand All @@ -68,6 +97,7 @@ lazy val `zio-sbt-ecosystem` =
scriptedBufferLog := false
)
.enablePlugins(SbtPlugin)
.dependsOn(`zio-sbt-project`)

lazy val `zio-sbt-ci` =
project
Expand All @@ -81,7 +111,7 @@ lazy val `zio-sbt-ci` =
scriptedBufferLog := false
)
.enablePlugins(SbtPlugin)
.dependsOn(`zio-sbt-githubactions`)
.dependsOn(`zio-sbt-githubactions`, `zio-sbt-project`)

lazy val `zio-sbt-githubactions` =
project
Expand Down
Loading

0 comments on commit cc8e5fc

Please sign in to comment.