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/linux-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Linux (Ubuntu)

on:
push:
paths:
- '**.cpp'
- '**.hpp'
- '**.txt'

branches:
- main

pull_request:
paths:
- '**.cpp'
- '**.hpp'

branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Run clang-format
run: clang-format -i examples/*.cpp && clang-format -i tests/*.cpp && clang-format -i tests/*.hpp && clang-format -i benchmarks/*.cpp && git diff-index --quiet HEAD

- name: Run CMake setup
working-directory: ./
run: mkdir build/ && cd build/ && cmake ../

- name: Build examples
working-directory: ./build
run: make examples

- name: Build tests
working-directory: ./build
run: make tests

- name: Build benchmarks
working-directory: ./build
run: make benchmarks

- name: Run tests
working-directory: ./
run: ./build/tests/test
54 changes: 54 additions & 0 deletions .github/workflows/windows-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Windows

defaults:
run:
shell: bash

on:
push:
paths:
- '**.cpp'
- '**.hpp'

branches:
- main

pull_request:
paths:
- '**.cpp'
- '**.hpp'
- '**.txt'

branches:
- main

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Run clang-format
shell: bash
run: C:/msys64/mingw64/bin/clang-format -i examples/*.cpp && C:/msys64/mingw64/bin/clang-format -i tests/*.cpp && C:/msys64/mingw64/bin/clang-format -i tests/*.hpp && C:/msys64/mingw64/bin/clang-format -i benchmarks/*.cpp && git diff-index --quiet HEAD

- name: Run CMake setup
working-directory: ./
run: mkdir build/ && cd build/ && cmake ../

- name: Build examples
working-directory: ./build
run: make examples

- name: Build tests
working-directory: ./build
run: make tests

- name: Build benchmarks
working-directory: ./build
run: make benchmarks

- name: Run tests
working-directory: ./
run: ./build/tests/test