Update CI #37
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ubuntu | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
ci-ubuntu: | |
runs-on: ubuntu-22.04 | |
steps: | |
- 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 main" >> /etc/apt/sources.list.d/llvm.list | |
echo "deb-src http://apt.llvm.org/jammy/ llvm-toolchain-jammy main" >> /etc/apt/sources.list.d/llvm.list | |
sudo apt update -y | |
sudo apt upgrade -y | |
sudo apt install clang-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=clang++-17 make -j | |
- name: run | |
shell: bash | |
run: bin/qoibench 1 images --noreference --nowarmup | |
- name: test | |
shell: bash | |
run: bin/test |