From e779fa96b0787d5d89e93c47985cfc13ae276aed Mon Sep 17 00:00:00 2001 From: Ben Zhang Date: Sun, 29 Dec 2024 15:52:19 -0800 Subject: [PATCH] Introduce macOS dev compatibility --- .github/workflows/test.yml | 2 +- scripts/generate-perfetto-trace-proto.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index feafe88..dadbad3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ jobs: strategy: matrix: python-version: ['3.10', '3.11', '3.12'] - os: [ubuntu-latest] + os: [ubuntu-latest, macos-latest] fail-fast: false # Continue running jobs even if one fails steps: diff --git a/scripts/generate-perfetto-trace-proto.sh b/scripts/generate-perfetto-trace-proto.sh index 99d73bf..efe90a8 100755 --- a/scripts/generate-perfetto-trace-proto.sh +++ b/scripts/generate-perfetto-trace-proto.sh @@ -6,7 +6,7 @@ mkdir -p tmp mkdir -p vendor/generated check_proto() { - echo "cf1ec0ad32d6772a2bf852e17195e1616062c2afa2320a2eb3f8af7f7956d7e3 tmp/perfetto_trace.proto" | sha256sum --check $@ + echo "cf1ec0ad32d6772a2bf852e17195e1616062c2afa2320a2eb3f8af7f7956d7e3 tmp/perfetto_trace.proto" | shasum -a 256 --check $@ } # Generate python bindings from perfetto_trace.proto