From 5106fe6a1c57e15c213a86e2611b2e41eed1f1cc Mon Sep 17 00:00:00 2001 From: Alex Robenko Date: Wed, 11 Sep 2024 09:08:11 +1000 Subject: [PATCH] Testing C++23 on github actions. --- .github/workflows/actions_build.yml | 7 +++++-- script/env_dev_gcc14.sh | 7 +++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100755 script/env_dev_gcc14.sh diff --git a/.github/workflows/actions_build.yml b/.github/workflows/actions_build.yml index e4eb050..d29f785 100644 --- a/.github/workflows/actions_build.yml +++ b/.github/workflows/actions_build.yml @@ -157,7 +157,10 @@ jobs: matrix: type: [Debug, Release, MinSizeRel] cc_ver: [13, 14] - cpp: [11, 14, 17, 20] + cpp: [11, 14, 17, 20, 23] + exclude: + - cc_ver: 13 + cpp: 23 steps: - uses: actions/checkout@v4 @@ -351,7 +354,7 @@ jobs: matrix: type: [Debug, Release, MinSizeRel] cc_ver: [16, 17, 18] - cpp: [11, 14, 17, 20] + cpp: [11, 14, 17, 20, 23] steps: - uses: actions/checkout@v4 diff --git a/script/env_dev_gcc14.sh b/script/env_dev_gcc14.sh new file mode 100755 index 0000000..2fe94e7 --- /dev/null +++ b/script/env_dev_gcc14.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +export CC=gcc-14 +export CXX=g++-14 + +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +source ${SCRIPT_DIR}/env_dev.sh "$@"