diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index feafe88..bca03ce 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,18 +14,24 @@ jobs: strategy: matrix: python-version: ['3.10', '3.11', '3.12'] - os: [ubuntu-latest] + os: [ubuntu-latest, macos-13] fail-fast: false # Continue running jobs even if one fails steps: - - name: Checkout repository - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.17 + - name: Set up Docker (macOS) + if: ${{ startsWith(matrix.os, 'macos') }} + run: | + brew install colima docker + colima start - name: Set up PDM uses: pdm-project/setup-pdm@568ddd69406b30de1774ec0044b73ae06e716aa4 # v4.1 with: python-version: ${{ matrix.python-version }} + - name: Checkout repository + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #v4.1.17 + - name: Install dependencies run: | pdm sync --dev 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