CI: added windows and osx builds as well as tests to the github pipelines #22
Workflow file for this run
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 | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- '*' | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ${{ matrix.platform.os }} | |
name: ${{ matrix.platform.name }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: | | |
cmake . | |
cmake --build . --config Release | |
cmake --install . --prefix opengametools-install | |
- name: Upload the build artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: opengametools-${{ matrix.platform.name }} | |
path: opengametools-install | |
strategy: | |
fail-fast: false | |
matrix: | |
platform: | |
- { name: Windows, os: windows-2022 } | |
- { name: Ubuntu, os: ubuntu-latest } | |
- { name: MacOS, os: macos-latest } |