Tmp #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |