Files
prometheus-cpp/.github/workflows/continuous-integration-workflow.yml
T
2020-12-23 12:35:01 +01:00

24 lines
843 B
YAML

name: Continuous Integration
on: [push, pull_request]
jobs:
build:
name: ${{ matrix.buildsystem }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
buildsystem: [cmake]
os: [macOS-latest, ubuntu-16.04, windows-2016]
steps:
- uses: actions/checkout@v2
- name: Checkout submodules
shell: bash
run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
- name: Prepare
run: .github/scripts/run-prepare ${{ matrix.buildsystem }} ${{ matrix.os }}
- name: Test
run: .github/scripts/run-${{ matrix.buildsystem }}-test ${{ matrix.os }}