Skip to content

Commit

Permalink
use clang++
Browse files Browse the repository at this point in the history
  • Loading branch information
wx257osn2 committed Feb 5, 2024
1 parent ee639ec commit 96ba2b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
4 changes: 2 additions & 2 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
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

0 comments on commit 96ba2b7

Please sign in to comment.