Skip to content

Commit

Permalink
Merge pull request #12 from aeris170/cmake-vcpkg-action
Browse files Browse the repository at this point in the history
Bump GCC to 14 and Clang to 17
  • Loading branch information
aeris170 authored Aug 29, 2024
2 parents e8c5e87 + 87332c4 commit 8cce68c
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,31 +63,33 @@ jobs:
chmod +x ${{ steps.strings.outputs.scripts-dir }}/fetch_apt_get.sh
${{ steps.strings.outputs.scripts-dir }}/fetch_apt_get.sh
- name: Install GCC 13 (for Linux)
- name: Install GCC 14 (for Linux)
if: matrix.os == 'ubuntu-latest' && matrix.cpp_compiler == 'g++'
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc-13 g++-13
- name: Set up GCC 13 (for Linux)
- name: Set up GCC 14 (for Linux)
if: matrix.os == 'ubuntu-latest' && matrix.cpp_compiler == 'g++'
run: |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 60
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 60
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-14 100
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-14 100
sudo update-alternatives --config gcc
sudo update-alternatives --config g++
- name: Install Clang 14 (for Linux)
- name: Install Clang 17 (for Linux)
if: matrix.os == 'ubuntu-latest' && matrix.cpp_compiler == 'clang++'
run: |
sudo apt-get install -y clang-14
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - &&\
sudo apt-get install -y clang-17 clang++-17
- name: Set up Clang 14 (for Linux)
- name: Set up Clang 17 (for Linux)
if: matrix.os == 'ubuntu-latest' && matrix.cpp_compiler == 'clang++'
run: |
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-14 60
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-14 60
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-17 100
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-17 100
sudo update-alternatives --config clang
sudo update-alternatives --config clang++
Expand Down

0 comments on commit 8cce68c

Please sign in to comment.