Skip to content

facebook-unused-include-check in fbcode/dynolog #896

facebook-unused-include-check in fbcode/dynolog

facebook-unused-include-check in fbcode/dynolog #896

Workflow file for this run

name: DYNOLOGCI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] # TODO: What other OSs should we include here?
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: Get env vars
run: |
echo GITHUB_WORKFLOW = $GITHUB_WORKFLOW
echo HOME = $HOME
echo GITHUB_ACTION = $GITHUB_ACTION
echo GITHUB_ACTIONS = $GITHUB_ACTIONS
echo GITHUB_REPOSITORY = $GITHUB_REPOSITORY
echo GITHUB_EVENT_NAME = $GITHUB_EVENT_NAME
echo GITHUB_EVENT_PATH = $GITHUB_EVENT_PATH
echo GITHUB_WORKSPACE = $GITHUB_WORKSPACE
echo GITHUB_SHA = $GITHUB_SHA
echo GITHUB_REF = $GITHUB_REF
c++ --verbose
- name: Download and setup Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Build dynolog binary
run: |
set -e
./scripts/build.sh
- name: Run Unit Tests
run: |
set -e
cd $GITHUB_WORKSPACE/build
ctest --output-on-failure