Skip to content

Commit

Permalink
Add C++20 Support
Browse files Browse the repository at this point in the history
  • Loading branch information
4c3y committed May 29, 2024
1 parent 7ce2b04 commit e541089
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/cpp_ubuntu20_04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
rosdistro: ['noetic']
gcc: ['8', '9', '10', '11', '13']
cxx: ['11', '14', '17']
cxx: ['11', '14', '17', '20']
container: ros:${{ matrix.rosdistro }}-ros-base-focal
name: ROS ${{ matrix.rosdistro }} - GCC ${{ matrix.gcc }} - C++${{ matrix.cxx }}
steps:
Expand All @@ -29,10 +29,6 @@ jobs:
- name: Install newest git version
run: sudo apt update && sudo apt-get install -y software-properties-common && sudo add-apt-repository -y ppa:git-core/ppa && sudo apt-get update && sudo apt-get install -y git

- name: Add testing repository
run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && sudo apt update
if: ${{ matrix.gcc }} == '12'

- name: Install GCC version ${{ matrix.gcc }}
run: sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && sudo apt update && sudo apt install -y gcc-${{ matrix.gcc }} g++-${{ matrix.gcc }} && sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-${{ matrix.gcc }} 100 --slave /usr/bin/g++ g++ /usr/bin/g++-${{ matrix.gcc }}

Expand Down

0 comments on commit e541089

Please sign in to comment.