Skip to content

Commit

Permalink
Merge pull request #18 from wx257osn2/update-ci
Browse files Browse the repository at this point in the history
Update CI
  • Loading branch information
wx257osn2 committed Feb 5, 2024
2 parents c38fa83 + e3ce0a5 commit 7c23a9d
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 10 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,24 @@ jobs:
ci-ubuntu:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: install clang
shell: bash
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" >> ./llvm.list
echo "deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main" >> ./llvm.list
sudo mv llvm.list /etc/apt/sources.list.d
sudo apt update -y
sudo apt install clang-17 -y
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: images
key: key
- id: cached
uses: andstor/file-existence-action@v2
uses: andstor/file-existence-action@v3
with:
files: images
- name: get benchmark suite
Expand All @@ -27,7 +36,7 @@ jobs:
run: curl https://qoiformat.org/benchmark/qoi_benchmark_suite.tar | tar x
- name: build
shell: bash
run: make -j
run: CXX=clang++-17 make -j
- name: run
shell: bash
run: bin/qoibench 1 images --noreference --nowarmup
Expand Down
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: 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
10 changes: 5 additions & 5 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ jobs:
git
curl
mingw-w64-ucrt-x86_64-make
mingw-w64-ucrt-x86_64-gcc
- uses: actions/checkout@v2
mingw-w64-ucrt-x86_64-clang
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: images
key: key
- id: cached
uses: andstor/file-existence-action@v2
uses: andstor/file-existence-action@v3
with:
files: images
- name: get benchmark suite
Expand All @@ -36,7 +36,7 @@ jobs:
run: curl https://qoiformat.org/benchmark/qoi_benchmark_suite.tar | tar x
- name: build
shell: msys2 {0}
run: mingw32-make -j
run: CXX=clang++ mingw32-make -j
- name: run
shell: msys2 {0}
run: bin/qoibench 1 images --noreference --nowarmup
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

qoixx is a high performance MIT licensed single-header [QOI](https://github.com/phoboslab/qoi) implementation written in C++20.

[![Ubuntu](https://github.com/wx257osn2/qoixx/actions/workflows/linux.yml/badge.svg)](https://github.com/wx257osn2/qoixx/actions/workflows/linux.yml) [![Windows(msys2)](https://github.com/wx257osn2/qoixx/actions/workflows/windows.yml/badge.svg)](https://github.com/wx257osn2/qoixx/actions/workflows/windows.yml)
[![Ubuntu](https://github.com/wx257osn2/qoixx/actions/workflows/linux.yml/badge.svg)](https://github.com/wx257osn2/qoixx/actions/workflows/linux.yml) [![Windows(msys2)](https://github.com/wx257osn2/qoixx/actions/workflows/windows.yml/badge.svg)](https://github.com/wx257osn2/qoixx/actions/workflows/windows.yml) [![M1 Mac](https://github.com/wx257osn2/qoixx/actions/workflows/mac.yml/badge.svg)](https://github.com/wx257osn2/qoixx/actions/workflows/mac.yml)

## Features

Expand Down

0 comments on commit 7c23a9d

Please sign in to comment.