Skip to content

Commit

Permalink
Disable doc for not scala3
Browse files Browse the repository at this point in the history
  • Loading branch information
RustedBones committed Dec 6, 2023
1 parent f4bbf34 commit 2ce6acc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' mimaReportBinaryIssues

- name: Generate API documentation
if: matrix.java == 'corretto@17' && matrix.os == 'ubuntu-latest'
if: '!(matrix.scala == ''3'')'
run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' doc

- name: Make target directories
Expand Down
24 changes: 10 additions & 14 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -121,32 +121,28 @@ ThisBuild / githubWorkflowTargetBranches := Seq("main")
ThisBuild / githubWorkflowJavaVersions := Seq(java17, java11)
ThisBuild / tlCiHeaderCheck := true
ThisBuild / tlCiScalafmtCheck := true
ThisBuild / tlCiDocCheck := true
ThisBuild / tlCiMimaBinaryIssueCheck := true
ThisBuild / githubWorkflowBuild ~= { steps: Seq[WorkflowStep] =>
steps.flatMap {
case s if s.name.contains("Test") =>
Seq(
WorkflowStep.Sbt(
List("test"),
name = Some("Test"),
cond = Some(s"!($scala3Cond)")
),
s.withCond(Some(s"!($scala3Cond)")),
WorkflowStep.Sbt(
scala3Projects.map(p => s"$p/test"),
name = Some("Test"),
cond = Some(scala3Cond)
)
)
case s if s.name.contains("Check binary compatibility") =>
Seq(
WorkflowStep.Sbt(
List("mimaReportBinaryIssues"),
name = Some("Check binary compatibility"),
cond = Some(s"!($scala3Cond)")
)
)
case s =>
Seq(s)
if (
s.name.contains("Check binary compatibility") ||
s.name.contains("Generate API documentation")
) {
Seq(s.withCond(Some(s"!($scala3Cond)")))
} else {
Seq(s)
}
}
}
ThisBuild / githubWorkflowAddedJobs ++= Seq(
Expand Down

0 comments on commit 2ce6acc

Please sign in to comment.