Skip to content

Commit

Permalink
Add github actions file
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed Oct 21, 2023
1 parent e74fc01 commit ca63b4d
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Build CI

on: [push]

jobs:
build:
name: ${{ matrix.config.name}}
runs-on: ${{matrix.config.os}}
strategy:
fail-fast: false
matrix:
config:
- {
name: "Windows MSVC",
os: windows-latest,
deps: "",
config: "cmake .",
build: "cmake --build .",
test: "ctest --output-on-failure"
}
- {
name: "Ubuntu gcc",
os: ubuntu-latest,
deps: "sudo apt-get install liblo-dev",
config: "mkdir build && cd build && cmake ..",
build: "cd build && make",
test: "cd build && ctest --output-on-failure"
}
- {
name: "macOS clang",
os: macos-latest,
deps: "",
config: "mkdir build && cd build && cmake ..",
build: "cd build && make",
test: "cd build && ctest --output-on-failure"
}

steps:
- uses: actions/checkout@v1
- name: install_deps
run: ${{matrix.config.deps}}
- name: configure
run: ${{matrix.config.config}}
- name: make
run: ${{matrix.config.build}}
- name: make test
run: ${{matrix.config.test}}

0 comments on commit ca63b4d

Please sign in to comment.