Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jm6271 committed Dec 12, 2024
2 parents b18bdf8 + 33c7f45 commit 4a9994e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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
sudo cmake --build build/ --target install
- name: Build and run tests
run: |
mkdir -p build
cd build
cmake ..
make
cd loc.tests
./loc.tests

0 comments on commit 4a9994e

Please sign in to comment.