diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index c1ea5f5..1117fc2 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -10,6 +10,15 @@ 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 - + sudo echo "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main" >> /etc/apt/sources.list.d/llvm.list + sudo 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 @@ -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 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index dd63dab..2399cad 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -18,7 +18,7 @@ jobs: git curl mingw-w64-ucrt-x86_64-make - mingw-w64-ucrt-x86_64-gcc + mingw-w64-ucrt-x86_64-clang - uses: actions/checkout@v4 with: submodules: recursive @@ -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