Skip to content

Commit

Permalink
add M1 mac CI
Browse files Browse the repository at this point in the history
  • Loading branch information
wx257osn2 committed Feb 5, 2024
1 parent 96ba2b7 commit 77155dd
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 77155dd

Please sign in to comment.