Skip to content

Commit 3f3cf11

Browse files
authored
Merge pull request #3308 from typelevel/update/sbt-typelevel-0.5.3
Update sbt-typelevel, sbt-typelevel-site to 0.5.3
2 parents 7bab560 + d569499 commit 3f3cf11

File tree

4 files changed

+49
-16
lines changed

4 files changed

+49
-16
lines changed

.cirrus.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ jobs:
105105

106106
publish:
107107
name: Publish Artifacts
108-
needs: [build]
108+
needs: [build, macos]
109109
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
110110
strategy:
111111
matrix:
@@ -238,9 +238,6 @@ jobs:
238238
echo "$PGP_PASSPHRASE" | gpg --pinentry-mode loopback --passphrase-fd 0 --import /tmp/signing-key.gpg
239239
(echo "$PGP_PASSPHRASE"; echo; echo) | gpg --command-fd 0 --pinentry-mode loopback --change-passphrase $(gpg --list-secret-keys --with-colons 2> /dev/null | grep '^sec:' | cut --delimiter ':' --fields 5 | tail -n 1)
240240
241-
- name: Wait for Cirrus CI
242-
uses: typelevel/await-cirrus@main
243-
244241
- name: Publish
245242
env:
246243
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
@@ -281,6 +278,38 @@ jobs:
281278
modules-ignore: integration_2.12 integration_2.13 integration_3 rootjs_2.12 rootjs_2.13 rootjs_3 microsite_2.12 microsite_2.13 microsite_3 rootjvm_2.12 rootjvm_2.13 rootjvm_3 rootnative_2.12 rootnative_2.13 rootnative_3 fs2-benchmark_2.12 fs2-benchmark_2.13 fs2-benchmark_3
282279
configs-ignore: test scala-tool scala-doc-tool test-internal
283280

281+
macos:
282+
name: Test I/O on macOS
283+
strategy:
284+
matrix:
285+
os: [macos-latest]
286+
java: [temurin@17]
287+
project: [ioJS, ioJVM, ioNative]
288+
runs-on: ${{ matrix.os }}
289+
steps:
290+
- name: Checkout current branch (full)
291+
uses: actions/checkout@v4
292+
with:
293+
fetch-depth: 0
294+
295+
- name: Setup Java (temurin@17)
296+
id: setup-java-temurin-17
297+
if: matrix.java == 'temurin@17'
298+
uses: actions/setup-java@v3
299+
with:
300+
distribution: temurin
301+
java-version: 17
302+
cache: sbt
303+
304+
- name: sbt update
305+
if: matrix.java == 'temurin@17' && steps.setup-java-temurin-17.outputs.cache-hit == 'false'
306+
run: sbt +update
307+
308+
- if: matrix.project == 'ioNative'
309+
run: brew install s2n
310+
311+
- run: sbt '${{ matrix.project }}/test'
312+
284313
site:
285314
name: Generate Site
286315
strategy:

build.sbt

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,23 @@ ThisBuild / githubWorkflowBuild ++= Seq(
2727
)
2828
)
2929

30-
ThisBuild / githubWorkflowPublishPreamble +=
31-
WorkflowStep.Use(
32-
UseRef.Public("typelevel", "await-cirrus", "main"),
33-
name = Some("Wait for Cirrus CI")
30+
ThisBuild / githubWorkflowAddedJobs +=
31+
WorkflowJob(
32+
"macos",
33+
"Test I/O on macOS",
34+
scalas = Nil,
35+
sbtStepPreamble = Nil,
36+
javas = List(githubWorkflowJavaVersions.value.head),
37+
oses = List("macos-latest"),
38+
matrixAdds = Map("project" -> List("ioJS", "ioJVM", "ioNative")),
39+
steps = githubWorkflowJobSetup.value.toList ++ List(
40+
WorkflowStep.Run(List("brew install s2n"), cond = Some("matrix.project == 'ioNative'")),
41+
WorkflowStep.Sbt(List("${{ matrix.project }}/test"))
42+
)
3443
)
3544

45+
ThisBuild / githubWorkflowPublishNeeds += "macos"
46+
3647
ThisBuild / licenses := List(("MIT", url("http://opensource.org/licenses/MIT")))
3748

3849
ThisBuild / doctestTestFramework := DoctestTestFramework.ScalaCheck

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
val sbtTypelevelVersion = "0.5.2"
1+
val sbtTypelevelVersion = "0.5.3"
22
addSbtPlugin("org.typelevel" % "sbt-typelevel" % sbtTypelevelVersion)
33
addSbtPlugin("org.typelevel" % "sbt-typelevel-site" % sbtTypelevelVersion)
44
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.13.2")

0 commit comments

Comments
 (0)