Add GitHub Action to build with CMake on Windows, Linux and macOS. #324
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: CMake Build | |
on: [ push, pull_request ] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ windows-latest, ubuntu-latest, macos-latest ] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Prerequisites | |
run: cmake -P ${{ github.workspace }}/.github/workflows/install_prerequisites.cmake | |
- name: Configure CMake | |
run: cmake -P ${{ github.workspace }}/.github/workflows/configure.cmake | |
- name: Build | |
run: cmake -P ${{ github.workspace }}/.github/workflows/build.cmake | |
- name: Package | |
run: cmake -P ${{ github.workspace }}/.github/workflows/package.cmake | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: ${{ matrix.os }} | |
path: package/projectM-* |