-
Notifications
You must be signed in to change notification settings - Fork 6
39 lines (37 loc) · 895 Bytes
/
mac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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: brew install llvm@17
- 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