Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/cmake-single-platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build & Test on Linux

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
BUILD_TYPE: RelWithDebInfo

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get -y install libboost-dev \
libboost-context-dev \
libboost-coroutine-dev \
valgrind \
gdb
git clone https://github.com/google/googletest.git
cd googletest && cmake -DCMAKE_INSTALL_PREFIX=install .
make install
cd ..

- name: Configure CMake
run: |
cmake -B ${{github.workspace}}/build \
-DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} \
-DGTEST_ROOT=googletest/install . \
-DQUANTUM_ENABLE_TESTS=ON \
-DQUANTUM_BOOST_USE_VALGRIND=ON \
-DCMAKE_CXX_STANDARD=17

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Test
working-directory: ${{github.workspace}}/build
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}
2 changes: 1 addition & 1 deletion quantum/util/impl/quantum_sequencer_experimental_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Sequencer<SequenceKey, Hash, KeyEqual, Allocator>::executePending(
{
rc = task->_func(ctx);
}
catch(const boost::coroutines2::detail::forced_unwind&)
catch(const Traits::CoroutineStackUnwind&)
{
// quantum context switch
throw;
Expand Down
Loading