Skip to content

Commit

Permalink
feat: support projectmatrix and support better crossbuilding
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijsBroersen committed Nov 3, 2024
1 parent 97f3900 commit 6f4cdd4
Show file tree
Hide file tree
Showing 32 changed files with 2,102 additions and 433 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
1 change: 1 addition & 0 deletions .sbtopts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-Dsbt.io.implicit.relative.glob.conversion=allow
246 changes: 218 additions & 28 deletions README.md

Large diffs are not rendered by default.

41 changes: 35 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ 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", "[email protected]", url("https://github.com/khajavi"))
),
Expand All @@ -27,13 +27,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 +70,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 +96,7 @@ lazy val `zio-sbt-ecosystem` =
scriptedBufferLog := false
)
.enablePlugins(SbtPlugin)
.dependsOn(`zio-sbt-project`)

lazy val `zio-sbt-ci` =
project
Expand All @@ -81,7 +110,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 6f4cdd4

Please sign in to comment.