diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1cf534e7..8ccc3cb7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,7 +27,11 @@ jobs: name: Build and Test strategy: matrix: - os: [macos-latest, ubuntu-latest, windows-latest] + os: + - macos-12 + - macos-14 + - ubuntu-latest + - windows-latest scala: [3] java: [temurin@11] runs-on: ${{ matrix.os }} @@ -62,7 +66,7 @@ jobs: run: sbt githubWorkflowCheck - name: Check headers and formatting - if: matrix.java == 'temurin@11' && matrix.os == 'macos-latest' + if: matrix.java == 'temurin@11' && matrix.os == 'macos-12' shell: bash run: sbt '++ ${{ matrix.scala }}' headerCheckAll scalafmtCheckAll 'project /' scalafmtSbtCheck @@ -71,12 +75,12 @@ jobs: run: sbt '++ ${{ matrix.scala }}' test - name: Check binary compatibility - if: matrix.java == 'temurin@11' && matrix.os == 'macos-latest' + if: matrix.java == 'temurin@11' && matrix.os == 'macos-12' shell: bash run: sbt '++ ${{ matrix.scala }}' mimaReportBinaryIssues - name: Generate API documentation - if: matrix.java == 'temurin@11' && matrix.os == 'macos-latest' + if: matrix.java == 'temurin@11' && matrix.os == 'macos-12' shell: bash run: sbt '++ ${{ matrix.scala }}' doc @@ -103,7 +107,7 @@ jobs: if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main') strategy: matrix: - os: [macos-latest] + os: [macos-12] java: [temurin@11] runs-on: ${{ matrix.os }} steps: diff --git a/build.sbt b/build.sbt index 2b5b0609..7493c213 100644 --- a/build.sbt +++ b/build.sbt @@ -33,7 +33,8 @@ ThisBuild / javaCppVersion := "1.5.10" ThisBuild / resolvers ++= Resolver.sonatypeOssRepos("snapshots") ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("11")) -ThisBuild / githubWorkflowOSes := Seq("macos-latest", "ubuntu-latest", "windows-latest") +// macos 12/14 to test on x86_64/arm64 respectively +ThisBuild / githubWorkflowOSes := Seq("macos-12", "macos-14", "ubuntu-latest", "windows-latest") val enableGPU = settingKey[Boolean]("enable or disable GPU support")