Skip to content

Commit

Permalink
Parallelize macOS job
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Sep 16, 2023
1 parent e04487c commit d569499
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ jobs:
matrix:
os: [macos-latest]
java: [temurin@17]
project: [ioJS, ioJVM, ioNative]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout current branch (full)
Expand All @@ -304,9 +305,10 @@ jobs:
if: matrix.java == 'temurin@17' && steps.setup-java-temurin-17.outputs.cache-hit == 'false'
run: sbt +update

- run: brew install s2n
- if: matrix.project == 'ioNative'
run: brew install s2n

- run: sbt ioJVM/test ioJS/test ioNative/test
- run: sbt '${{ matrix.project }}/test'

site:
name: Generate Site
Expand Down
5 changes: 3 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ ThisBuild / githubWorkflowAddedJobs +=
sbtStepPreamble = Nil,
javas = List(githubWorkflowJavaVersions.value.head),
oses = List("macos-latest"),
matrixAdds = Map("project" -> List("ioJS", "ioJVM", "ioNative")),
steps = githubWorkflowJobSetup.value.toList ++ List(
WorkflowStep.Run(List("brew install s2n")),
WorkflowStep.Sbt(List("ioJVM/test", "ioJS/test", "ioNative/test"))
WorkflowStep.Run(List("brew install s2n"), cond = Some("matrix.project == 'ioNative'")),
WorkflowStep.Sbt(List("${{ matrix.project }}/test"))
)
)

Expand Down

0 comments on commit d569499

Please sign in to comment.