37 lines
926 B
YAML
37 lines
926 B
YAML
# GitHub actions workflow.
|
|
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
|
|
|
|
name: Build+Test CI
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
tags: [linux-v*]
|
|
|
|
schedule:
|
|
# The GH mirroring from Google GoB does not trigger push actions.
|
|
# Fire it every other day to provide some coverage. This will run ~8 AM PT.
|
|
- cron: '39 3 */2 * *'
|
|
|
|
# Allow for manual triggers from the web.
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [ubuntu-latest]
|
|
cc: [gcc, clang]
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
CC: ${{ matrix.cc }}
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Install system packages
|
|
run: sudo apt-get install libcap-dev
|
|
- name: Install Googletest (gtest/gmock)
|
|
run: ./get_googletest.sh
|
|
- run: make VERBOSE=1
|
|
- run: make VERBOSE=1 check
|