Skip to content

[Trifocal+P2Pt] reducing variables for cache #46

[Trifocal+P2Pt] reducing variables for cache

[Trifocal+P2Pt] reducing variables for cache #46

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-tests:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest] # , windows-latest]
env:
CTEST_OUTPUT_ON_FAILURE: 1
steps:
- uses: actions/checkout@v2
- name: Init build dir
run: |
mkdir ./build
- name: Configure CMake
working-directory: ./build
run: |
cmake ../
shell: bash
- name: Build
working-directory: ./build
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
cmake --build . --config Release
else
cmake --build . -- -j$(nproc)
fi
shell: bash