mirror of
https://github.com/jupp0r/prometheus-cpp.git
synced 2026-07-21 14:33:30 +00:00
24 lines
843 B
YAML
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 }}
|