From 77155dda2bffb58939e87593b35ae8eb8b6e958f Mon Sep 17 00:00:00 2001 From: I <1091761+wx257osn2@users.noreply.github.com> Date: Mon, 5 Feb 2024 22:36:34 +0900 Subject: [PATCH] add M1 mac CI --- .github/workflows/mac.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/mac.yml diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml new file mode 100644 index 0000000..a5ec562 --- /dev/null +++ b/.github/workflows/mac.yml @@ -0,0 +1,39 @@ +name: M1 Mac + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + ci-mac: + runs-on: macos-14 + steps: + - name: install clang + shell: bash + run: sudo brew install llvm@17 -y + - uses: actions/checkout@v4 + with: + submodules: recursive + - uses: actions/cache@v4 + with: + path: images + key: key + - id: cached + uses: andstor/file-existence-action@v3 + with: + files: images + - name: get benchmark suite + if: steps.cached.outputs.files_exists == 'false' + shell: bash + run: curl https://qoiformat.org/benchmark/qoi_benchmark_suite.tar | tar x + - name: build + shell: bash + run: CXX=$(brew --prefix llvm@17)/bin/clang++ make -j + - name: run + shell: bash + run: bin/qoibench 1 images --noreference --nowarmup + - name: test + shell: bash + run: bin/test