diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml new file mode 100644 index 0000000..e231f6d --- /dev/null +++ b/.github/workflows/pr-tests.yml @@ -0,0 +1,32 @@ +name: Tests + +on: + push: + branches: + - development + pull_request: + branches: + - main + - development + +permissions: + contents: read + +concurrency: + group: pr-tests-${{ github.event_name }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test-all: + runs-on: macos-26 + timeout-minutes: 60 + + steps: + - name: Checkout repository + uses: actions/checkout@v7 + + - name: Install GoogleTest + run: brew install googletest + + - name: Run all tests + run: make test-all diff --git a/README.md b/README.md index 0390772..0796408 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # macOS Memory Benchmark -![Platform](https://img.shields.io/badge/platform-Apple%20Silicon-000000?logo=apple) ![CLI](https://img.shields.io/badge/CLI-Tool-00A8CC?logo=terminal) ![License](https://img.shields.io/badge/license-GPL--3.0--or--later-blue) ![Assembly](https://img.shields.io/badge/Assembly-ARM64-6E4C13) ![C++](https://img.shields.io/badge/C++-00599C?logo=cplusplus&logoColor=white) +![Platform](https://img.shields.io/badge/platform-Apple%20Silicon-000000?logo=apple) ![CLI](https://img.shields.io/badge/CLI-Tool-00A8CC?logo=terminal) ![License](https://img.shields.io/badge/license-GPL--3.0--or--later-blue) ![Assembly](https://img.shields.io/badge/Assembly-ARM64-6E4C13) ![C++](https://img.shields.io/badge/C++-00599C?logo=cplusplus&logoColor=white) [![Development tests](https://github.com/timoheimonen/macOS-memory-benchmark/actions/workflows/pr-tests.yml/badge.svg?branch=development&event=push)](https://github.com/timoheimonen/macOS-memory-benchmark/actions/workflows/pr-tests.yml) `memory_benchmark` is a low-level command-line tool for measuring CPU and Metal GPU memory bandwidth, synthetic LLM decode and prefill memory traffic, cache and main-memory latency, access-pattern performance, TLB behavior, and