Skip to content

Instantly share code, notes, and snippets.

@jflopezfernandez
Created November 21, 2020 07:03
Show Gist options
  • Save jflopezfernandez/0575f2da141e0beff0ed7d8c0149ff77 to your computer and use it in GitHub Desktop.
Save jflopezfernandez/0575f2da141e0beff0ed7d8c0149ff77 to your computer and use it in GitHub Desktop.
Experimental GitHub workflows refactor for Check
name: Check CMake Buildsystem CI Workflow
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
config: [ Debug, Release ]
os: [ macos-latest, ubuntu-latest ]
steps:
- uses: actions/checkout@v2
- name: configure
run: cmake . -DCMAKE_BUILD_TYPE=${{ matrix.config }}
- name: make
run: cmake --build . --config ${{ matrix.config }}
- name: install
run: cmake --install . --config ${{ matrix.config }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment