Skip to content

Commit 1d9261f

Browse files
authored
CI: fix MacOS jobs (#186)
1 parent 5ffbc99 commit 1d9261f

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
name: Build and Test
2323
strategy:
2424
matrix:
25-
os: [ubuntu-latest, macos-latest]
25+
os: [ubuntu-latest, macos-12]
2626
scala: [2.13.13]
2727
java:
2828
- temurin@8

build.sbt

+10-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,16 @@ inThisBuild(Seq[Setting[_]](
1515
Developer("retronym", "Jason Zaugg", "@retronym", url("https://github.com/retronym")),
1616
),
1717
scalacOptions := Seq("-feature", "-deprecation", "-Xlint", "-Werror"),
18-
githubWorkflowOSes := Seq("ubuntu-latest", "macos-latest"),
18+
// since April 2024 or so, macos-latest gives us a machine that doesn't
19+
// have sbt installed (actions/setup-java#627). if we weren't using
20+
// sbt-github-actions it would be easy to just edit the workflow directly to
21+
// use `brew install sbt`, but it's easier to just stay on macos-12 for as
22+
// long as it remains available. I've reported the issue upstream at
23+
// sbt/sbt-github-actions#185 . if we do move
24+
// to macos-latest, note that it doesn't have temurin@8 anymore (as per
25+
// actions/setup-java#625), so we'd also need to change that entry (a few
26+
// lines below) from "temurin" to "zulu"
27+
githubWorkflowOSes := Seq("ubuntu-latest", "macos-12"),
1928
githubWorkflowJavaVersions := Seq(
2029
JavaSpec.temurin("8"),
2130
JavaSpec.temurin("11"),

0 commit comments

Comments
 (0)