Skip to content

Add GitHub Action to build with CMake on Windows, Linux and macOS. #324

Add GitHub Action to build with CMake on Windows, Linux and macOS.

Add GitHub Action to build with CMake on Windows, Linux and macOS. #324

Workflow file for this run

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-*