-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (43 loc) · 1 KB
/
windows.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
40
41
42
43
44
45
name: Windows(msys2)
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-2022
steps:
- uses: msys2/setup-msys2@v2
with:
update: true
msystem: ucrt64
install: >-
git
curl
mingw-w64-ucrt-x86_64-make
mingw-w64-ucrt-x86_64-gcc
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: actions/cache@v3
with:
path: images
key: key
- id: cached
uses: andstor/file-existence-action@v2
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: msys2 {0}
run: mingw32-make -j
- name: run
shell: msys2 {0}
run: bin/qoibench 1 images --noreference --nowarmup
- name: test
shell: msys2 {0}
run: bin/test