From c4357c59646ccffa26f174e88d97dfffc03a3844 Mon Sep 17 00:00:00 2001 From: William Entriken Date: Mon, 23 Dec 2024 10:23:53 -0500 Subject: [PATCH 1/2] Buy a Mac Mini M1 --- .github/workflows/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d5c0fe39..543e54d5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,6 +14,21 @@ jobs: - name: check formatting run: cd ${OLC_PATH} && bash clang_check.sh + # C implementation. Lives in c/, tested with bazel. + # Use Mac with Apple Silicon for this test because of different floating point math + # which can affect test results https://github.com/google/open-location-code/issues/652 + test-c: + runs-on: macos-latest + env: + OLC_PATH: c + steps: + - uses: actions/checkout@v4 + - uses: bazelbuild/setup-bazelisk@v3 + - name: test + run: bazel test --test_output=all ${OLC_PATH}:all + - name: check formatting + run: cd ${OLC_PATH} && bash clang_check.sh + # C++ implementation. Lives in cpp/, tested with bazel. test-cpp: runs-on: ubuntu-latest From 2fed518e5e62de69a47590f5a49a02b16ce5a82f Mon Sep 17 00:00:00 2001 From: William Entriken Date: Mon, 23 Dec 2024 10:31:22 -0500 Subject: [PATCH 2/2] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 543e54d5..a0d94360 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ jobs: # C implementation. Lives in c/, tested with bazel. # Use Mac with Apple Silicon for this test because of different floating point math # which can affect test results https://github.com/google/open-location-code/issues/652 - test-c: + test-c-macos-latest: runs-on: macos-latest env: OLC_PATH: c