Skip to content

Add Github actions

Add Github actions #10

Workflow file for this run

name: MacOS-dep-brew
# https://www.jeffgeerling.com/blog/2020/running-github-actions-workflow-on-schedule-and-other-events
on:
push:
pull_request:
schedule:
- cron: '0 2 * * SUN'
jobs:
build-macos-dep-brew:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-11, macos-12.0]
steps:
# https://github.com/marketplace/actions/cancel-workflow-action
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout repository
uses: actions/checkout@v2
- name: Print system information
run: sysctl -a | grep machdep.cpu
- name: Print OS information
run: system_profiler SPSoftwareDataType
- name: Install dependencies
run: |
brew update && brew upgrade
brew install visp
brew deps --tree --installed
- name: Configure CMake and build visp_sample
run: |
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j$(sysctl -n hw.logicalcpu)