Skip to content

Commit

Permalink
Create cmake-multi-platform.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jm6271 authored Dec 12, 2024
1 parent f1b0b81 commit 577fdc0
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 577fdc0

Please sign in to comment.