Skip to content

Commit

Permalink
ci: Use a C++20 compliant devtoolset on Linux
Browse files Browse the repository at this point in the history
GCC/stdlibc++ 12 is supporting all of C++20
language features and most C++20 library features.

See:
https://access.redhat.com/documentation/en-us/red_hat_developer_toolset/12/html-single/user_guide/index
See:
https://en.cppreference.com/w/cpp/compiler_support/20#C.2B.2B20_library_features

Signed-off-by: Julien Jerphanion <[email protected]>

Co-authored-by: Alex Seaton <[email protected]>
  • Loading branch information
jjerphan and poodlewars committed Apr 23, 2024
1 parent 891b867 commit 5049da6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build_steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,17 @@ jobs:
du -m /mnt/usr/local/lib/ | sort -n | tail -n 50
nohup rm -rf /mnt/usr/local/lib/android &
- name: Use a C++20 compliant devtoolset
if: matrix.os == 'linux'
run: |
yum update -y
yum install -y devtoolset-12
echo "CMAKE_C_COMPILER=/opt/rh/devtoolset-11/root/usr/bin/gcc" | tee -a $GITHUB_ENV
echo "CMAKE_CXX_COMPILER=/opt/rh/devtoolset-11/root/usr/bin/g++" | tee -a $GITHUB_ENV
echo "LD_LIBRARY_PATH=/opt/rh/devtoolset-11/root/usr/lib64:\
/opt/rh/devtoolset-11/root/usr/lib:/opt/rh/devtoolset-11/root/usr/lib64/dyninst:${LD_LIBRARY_PATH}" | tee -a $GITHUB_ENV
echo "/opt/rh/devtoolset-11/root/usr/bin" >> $GITHUB_PATH
- name: Find and remove ccache # See PR: #945
if: matrix.os == 'windows'
run: rm $(which ccache) || true
Expand Down

0 comments on commit 5049da6

Please sign in to comment.