Skip to content

Commit

Permalink
fix clang builds
Browse files Browse the repository at this point in the history
  • Loading branch information
choll committed Oct 4, 2023
1 parent 0eb1b66 commit fb0ecef
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 36 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/ubuntu_clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ jobs:

- name: setup clang
run: |
sudo update-alternatives \
--install /usr/lib/llvm llvm /usr/lib/llvm-15 1000 \
--slave /usr/bin/llvm-ar llvm-ar /usr/bin/llvm-ar-15 \
--slave /usr/bin/llvm-ranlib llvm-ranlib /usr/bin/llvm-ranlib-15
sudo update-alternatives \
--install /usr/bin/clang clang /usr/bin/clang-15 1000
sudo update-alternatives \
--install /usr/bin/clang++ clang++ /usr/bin/clang++-15 1000
sudo update-alternatives --install /usr/lib/llvm llvm /usr/lib/llvm-15 1000
sudo update-alternatives --install /usr/bin/llvm-ar llvm-ar /usr/bin/llvm-ar-15 1000
sudo update-alternatives --install /usr/bin/llvm-ranlib llvm-ranlib /usr/bin/llvm-ranlib-15 1000
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-15 1000
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-15 1000
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 1000
- name: init submodules
run: git submodule init
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/ubuntu_clang_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,12 @@ jobs:

- name: setup clang
run: |
sudo update-alternatives \
--install /usr/lib/llvm llvm /usr/lib/llvm-15 1000 \
--slave /usr/bin/llvm-ar llvm-ar /usr/bin/llvm-ar-15 \
--slave /usr/bin/llvm-ranlib llvm-ranlib /usr/bin/llvm-ranlib-15
sudo update-alternatives \
--install /usr/bin/clang clang /usr/bin/clang-15 1000
sudo update-alternatives \
--install /usr/bin/clang++ clang++ /usr/bin/clang++-15 1000
sudo update-alternatives \
--install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 1000
sudo update-alternatives --install /usr/lib/llvm llvm /usr/lib/llvm-15 1000
sudo update-alternatives --install /usr/bin/llvm-ar llvm-ar /usr/bin/llvm-ar-15 1000
sudo update-alternatives --install /usr/bin/llvm-ranlib llvm-ranlib /usr/bin/llvm-ranlib-15 1000
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-15 1000
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-15 1000
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 1000
- name: install conan
run: sudo pip install 'conan<2'
Expand Down
16 changes: 6 additions & 10 deletions .github/workflows/ubuntu_clang_conan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,12 @@ jobs:

- name: setup clang
run: |
sudo update-alternatives \
--install /usr/lib/llvm llvm /usr/lib/llvm-15 1000 \
--slave /usr/bin/llvm-ar llvm-ar /usr/bin/llvm-ar-15 \
--slave /usr/bin/llvm-ranlib llvm-ranlib /usr/bin/llvm-ranlib-15
sudo update-alternatives \
--install /usr/bin/clang clang /usr/bin/clang-15 1000
sudo update-alternatives \
--install /usr/bin/clang++ clang++ /usr/bin/clang++-15 1000
sudo update-alternatives \
--install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 1000
sudo update-alternatives --install /usr/lib/llvm llvm /usr/lib/llvm-15 1000
sudo update-alternatives --install /usr/bin/llvm-ar llvm-ar /usr/bin/llvm-ar-15 1000
sudo update-alternatives --install /usr/bin/llvm-ranlib llvm-ranlib /usr/bin/llvm-ranlib-15 1000
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-15 1000
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-15 1000
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 1000
- name: install conan
run: sudo pip install 'conan<2'
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/ubuntu_clang_sanitizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,12 @@ jobs:

- name: set symlinks
run: |
sudo update-alternatives \
--install /usr/lib/llvm llvm /usr/lib/llvm-15 1000 \
--slave /usr/bin/llvm-ar llvm-ar /usr/bin/llvm-ar-15 \
--slave /usr/bin/llvm-ranlib llvm-ranlib /usr/bin/llvm-ranlib-15
sudo update-alternatives \
--install /usr/bin/clang clang /usr/bin/clang-15 1000
sudo update-alternatives \
--install /usr/bin/clang++ clang++ /usr/bin/clang++-15 1000
sudo update-alternatives --install /usr/lib/llvm llvm /usr/lib/llvm-15 1000
sudo update-alternatives --install /usr/bin/llvm-ar llvm-ar /usr/bin/llvm-ar-15 1000
sudo update-alternatives --install /usr/bin/llvm-ranlib llvm-ranlib /usr/bin/llvm-ranlib-15 1000
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-15 1000
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-15 1000
sudo update-alternatives --install /usr/bin/clang-format clang-format /usr/bin/clang-format-15 1000
- name: init submodules
run: git submodule init
Expand Down

0 comments on commit fb0ecef

Please sign in to comment.