Skip to content

Commit

Permalink
add gcc-11...gcc-12
Browse files Browse the repository at this point in the history
* tweak noexcept constructors in tests due to a regression in GCC 11+
* enable CI steps
  • Loading branch information
janondrusek committed Oct 20, 2023
1 parent 733cd9e commit 034ef8c
Show file tree
Hide file tree
Showing 3 changed files with 85 additions and 6 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/libunifex-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,66 @@ jobs:
cc: "gcc-10", cxx: "g++-10",
cmake_args: "-D CMAKE_CXX_STANDARD:STRING=20 -D CMAKE_CXX_FLAGS:STRING=-fcoroutines"
}
- {
name: "Linux GCC 11 Debug (C++17)", artifact: "Linux.tar.xz",
os: ubuntu-20.04,
io_sys: io_uring,
build_type: Debug,
cc: "gcc-11", cxx: "g++-11"
}
- {
name: "Linux GCC 11 Optimised (C++17)", artifact: "Linux.tar.xz",
os: ubuntu-20.04,
io_sys: io_uring,
build_type: RelWithDebInfo,
cc: "gcc-11", cxx: "g++-11"
}
- {
name: "Linux GCC 11 Debug (C++20)", artifact: "Linux.tar.xz",
os: ubuntu-20.04,
io_sys: io_uring,
build_type: Debug,
cc: "gcc-11", cxx: "g++-11",
cmake_args: "-D CMAKE_CXX_STANDARD:STRING=20"
}
- {
name: "Linux GCC 11 Optimised (C++20)", artifact: "Linux.tar.xz",
os: ubuntu-20.04,
io_sys: io_uring,
build_type: RelWithDebInfo,
cc: "gcc-11", cxx: "g++-11",
cmake_args: "-D CMAKE_CXX_STANDARD:STRING=20"
}
- {
name: "Linux GCC 12 Debug (C++17)", artifact: "Linux.tar.xz",
os: ubuntu-22.04,
io_sys: io_uring,
build_type: Debug,
cc: "gcc-12", cxx: "g++-12"
}
- {
name: "Linux GCC 12 Optimised (C++17)", artifact: "Linux.tar.xz",
os: ubuntu-22.04,
io_sys: io_uring,
build_type: RelWithDebInfo,
cc: "gcc-12", cxx: "g++-12"
}
- {
name: "Linux GCC 12 Debug (C++20)", artifact: "Linux.tar.xz",
os: ubuntu-22.04,
io_sys: io_uring,
build_type: Debug,
cc: "gcc-12", cxx: "g++-12",
cmake_args: "-D CMAKE_CXX_STANDARD:STRING=20"
}
- {
name: "Linux GCC 12 Optimised (C++20)", artifact: "Linux.tar.xz",
os: ubuntu-22.04,
io_sys: io_uring,
build_type: RelWithDebInfo,
cc: "gcc-12", cxx: "g++-12",
cmake_args: "-D CMAKE_CXX_STANDARD:STRING=20"
}
- {
name: "Linux Clang 10 Debug (C++17)", artifact: "Linux.tar.xz",
os: ubuntu-20.04,
Expand Down Expand Up @@ -519,6 +579,25 @@ jobs:
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 16
- name: Install GCC 11
id: install_gcc_11
if: startsWith(matrix.config.os, 'ubuntu') && ( matrix.config.cxx == 'g++-11' )
shell: bash
working-directory: ${{ env.HOME }}
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa -y
sudo apt update
sudo apt install g++-11 gcc-11
- name: Install GCC 12
id: install_gcc_12
if: startsWith(matrix.config.os, 'ubuntu') && ( matrix.config.cxx == 'g++-12' )
shell: bash
working-directory: ${{ env.HOME }}
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa -y
sudo apt update
sudo apt install g++-12 gcc-12
- name: Install liburing
id: install_liburing
Expand Down
8 changes: 4 additions & 4 deletions test/async_scope_v2_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ template <bool ThrowOnCopy, bool ThrowOnMove>
struct custom_receiver final {
custom_receiver() noexcept = default;

custom_receiver(const custom_receiver&) noexcept(!ThrowOnCopy) = default;
custom_receiver(const custom_receiver&) noexcept(!ThrowOnCopy) {}

custom_receiver(custom_receiver&&) noexcept(!ThrowOnMove) = default;
custom_receiver(custom_receiver&&) noexcept(!ThrowOnMove) {}

~custom_receiver() = default;

Expand Down Expand Up @@ -235,8 +235,8 @@ TEST_F(
nest_of_just_of_newtype_has_expected_static_properties) {
struct newtype {
newtype() = default;
newtype(const newtype&) noexcept(false) = default;
newtype(newtype&&) noexcept(false) = default;
newtype(const newtype&) noexcept(false) {}
newtype(newtype&&) noexcept(false) {}
~newtype() = default;
};

Expand Down
4 changes: 2 additions & 2 deletions test/nest_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ struct throwing_sender final {

static constexpr bool sends_done = false;

throwing_sender() noexcept(false) = default;
throwing_sender() noexcept(false) {}

throwing_sender(const throwing_sender&) noexcept(false) = default;
throwing_sender(const throwing_sender&) noexcept(false) {}

~throwing_sender() = default;

Expand Down

0 comments on commit 034ef8c

Please sign in to comment.