Cleanup build config

This commit is contained in:
Victor Zverovich
2025-03-15 20:24:56 -07:00
parent d13fb6092f
commit 191c504b10
3 changed files with 24 additions and 22 deletions

View File

@ -28,6 +28,11 @@ jobs:
build_type: Debug build_type: Debug
std: 20 std: 20
install: sudo apt install g++-11 install: sudo apt install g++-11
- cxx: g++-13
build_type: Release
std: 23
install: sudo apt install g++-13
shared: -DBUILD_SHARED_LIBS=ON
- cxx: clang++-11 - cxx: clang++-11
build_type: Debug build_type: Debug
std: 17 std: 17
@ -40,25 +45,20 @@ jobs:
fuzz: -DFMT_FUZZ=ON -DFMT_FUZZ_LINKMAIN=ON fuzz: -DFMT_FUZZ=ON -DFMT_FUZZ_LINKMAIN=ON
std: 17 std: 17
install: sudo apt install clang-11 install: sudo apt install clang-11
#- cxx: clang++-13 - cxx: clang++-14
# build_type: Debug build_type: Debug
# std: 20 std: 20
#- cxx: clang++-13 - cxx: clang++-14
# build_type: Debug build_type: Debug
# std: 20 std: 20
# cxxflags: -stdlib=libc++ cxxflags: -stdlib=libc++
# install: sudo apt install libc++-13-dev libc++abi-13-dev install: sudo apt install libc++-14-dev libc++abi-14-dev
- cxx: g++-13
build_type: Release
std: 23
install: sudo apt install g++-13
shared: -DBUILD_SHARED_LIBS=ON
steps: steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Set timezone - name: Set timezone
run: sudo timedatectl set-timezone 'Asia/Yekaterinburg' run: sudo timedatectl set-timezone 'Europe/Minsk'
- name: Install GCC 4.9 - name: Install GCC 4.9
run: | run: |
@ -94,7 +94,7 @@ jobs:
- name: Install Clang 3.6 - name: Install Clang 3.6
run: | run: |
sudo apt update sudo apt update
sudo apt install libtinfo5 libobjc4 sudo apt install libtinfo5
# https://code.launchpad.net/ubuntu/xenial/amd64/clang-3.6/1:3.6.2-3ubuntu2 # https://code.launchpad.net/ubuntu/xenial/amd64/clang-3.6/1:3.6.2-3ubuntu2
wget --no-verbose \ wget --no-verbose \
http://launchpadlibrarian.net/230019046/libffi6_3.2.1-4_amd64.deb \ http://launchpadlibrarian.net/230019046/libffi6_3.2.1-4_amd64.deb \
@ -135,11 +135,12 @@ jobs:
run: | run: |
# GitHub Actions caching proxy is at times unreliable # GitHub Actions caching proxy is at times unreliable
# see https://github.com/actions/runner-images/issues/7048. # see https://github.com/actions/runner-images/issues/7048.
mirrors=/etc/apt/mirrors.txt
printf 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | \ printf 'http://azure.archive.ubuntu.com/ubuntu\tpriority:1\n' | \
sudo tee /etc/apt/mirrors.txt sudo tee $mirrors
curl http://mirrors.ubuntu.com/mirrors.txt | \ curl http://mirrors.ubuntu.com/mirrors.txt | sudo tee --append $mirrors
sudo tee --append /etc/apt/mirrors.txt sudo sed -i \
sudo sed -i 's~http://azure.archive.ubuntu.com/ubuntu/~mirror+file:/etc/apt/mirrors.txt~' \ "s~http://azure.archive.ubuntu.com/ubuntu/~mirror+file:$mirrors~" \
/etc/apt/sources.list /etc/apt/sources.list
- name: Create build environment - name: Create build environment

View File

@ -28,7 +28,7 @@ jobs:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- name: Set timezone - name: Set timezone
run: sudo systemsetup -settimezone 'Asia/Yekaterinburg' run: sudo systemsetup -settimezone 'Europe/Minsk'
- name: Select Xcode 14.3 (macOS 13) - name: Select Xcode 14.3 (macOS 13)
run: sudo xcode-select -s "/Applications/Xcode_14.3.app" run: sudo xcode-select -s "/Applications/Xcode_14.3.app"

View File

@ -383,11 +383,12 @@ TEST(std_test, format_atomic) {
#ifdef __cpp_lib_atomic_flag_test #ifdef __cpp_lib_atomic_flag_test
TEST(std_test, format_atomic_flag) { TEST(std_test, format_atomic_flag) {
std::atomic_flag f = ATOMIC_FLAG_INIT; std::atomic_flag f;
(void)f.test_and_set(); (void)f.test_and_set();
EXPECT_EQ(fmt::format("{}", f), "true"); EXPECT_EQ(fmt::format("{}", f), "true");
const std::atomic_flag cf = ATOMIC_FLAG_INIT; f.clear();
const std::atomic_flag& cf = f;
EXPECT_EQ(fmt::format("{}", cf), "false"); EXPECT_EQ(fmt::format("{}", cf), "false");
} }
#endif // __cpp_lib_atomic_flag_test #endif // __cpp_lib_atomic_flag_test