From e43dde674a195bf368e32c45e783b3e7244ed259 Mon Sep 17 00:00:00 2001 From: Jamieson Pryor Date: Sun, 25 Feb 2024 15:46:52 -0800 Subject: [PATCH] Add Darwin runner for subset of targets. There is further discussion in - https://github.com/orgs/community/discussions/118963 - https://github.com/google/jni-bind/issues/268 PiperOrigin-RevId: 610234559 --- .github/workflows/ci.yml | 14 +++++++++++--- MODULE.bazel | 4 ++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fd63600d..31133780 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,10 +10,18 @@ permissions: contents: read jobs: - build: + linux_test: runs-on: ubuntu-latest - steps: - - uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0 + - uses: actions/checkout@v4 - name: test run: bazel test --cxxopt='-std=c++17' --repo_env=CC=clang --test_output=errors ... + + # NOTE: Mac is only running a small subset of targets due to an unresolved + # issue in Bazel. When this is fixed in the future I will expand testing. + macos_test: + runs-on: macos-latest + steps: + - uses: actions/checkout@v4 + - name: test + run: bazel test --cxxopt='-std=c++17' --repo_env=CC=clang --test_output=errors metaprogramming/... diff --git a/MODULE.bazel b/MODULE.bazel index dc5df108..ef714099 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -8,6 +8,7 @@ bazel_dep(name = "bazel_skylib", version = "1.4.2") bazel_dep(name = "rules_java", version = "7.1.0") bazel_dep(name = "rules_jvm_external", version = "5.2") bazel_dep(name = "rules_license", version = "0.0.7") +bazel_dep(name = "freetype", version = "2.9") bazel_dep(name = "protobuf", version = "21.7", repo_name = "com_google_protobuf") bazel_dep( @@ -19,8 +20,7 @@ bazel_dep( # Maven artifacts required by Stardoc; keep consistent with deps.bzl MAVEN_ARTIFACTS = [ - "com.google.guava:guava:31.1-jre", - "com.google.truth:truth:1.1.3", + "com.google.truth:truth:1.1.2", "junit:junit:4.13.2", "org.mockito:mockito-core:4.3.1", ]