From 577fdc0c470d3714fb8510994321485f620079ce Mon Sep 17 00:00:00 2001 From: jm6271 <107654654+jm6271@users.noreply.github.com> Date: Wed, 11 Dec 2024 21:52:52 -0500 Subject: [PATCH] Create cmake-multi-platform.yml --- .github/workflows/cmake-multi-platform.yml | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/cmake-multi-platform.yml diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml new file mode 100644 index 0000000..da8bfdb --- /dev/null +++ b/.github/workflows/cmake-multi-platform.yml @@ -0,0 +1,37 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install dependencies + run: sudo apt update && sudo apt install -y cmake g++ make libboost-all-dev + + - name: Install Catch2 + run: | + mkdir -p external + cd external + git clone https://github.com/catchorg/Catch2.git + cd Catch2 + cmake -Bbuild -H. -DBUILD_TESTING=OFF + cmake --build build/ --target install + + - name: Build and run tests + run: | + mkdir -p build + cd build + cmake .. + make + ctest