Files
PerspectiveTransform/.github/workflows/mac-os.yml
Paul Zabelin 54cc8182b0 add macOS workflow (#113)
* add macos workflow
* update opencv install script
* cache OpenCV brew installation
* update badge
2020-09-09 02:05:54 -07:00

34 lines
1.1 KiB
YAML

name: macOS
on: [push, pull_request]
jobs:
macOS:
name: Test on macOS
runs-on: macOS-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v2.3.2
- uses: actions/cache@v2.1.1
id: opencv-cache
with:
key: opencv-${{ hashFiles('**/install-opencv.sh') }}
path: |
/usr/local/Cellar/openblas
/usr/local/Cellar/tbb
/usr/local/Cellar/gcc
/usr/local/Cellar/opencv
- name: Install OpenCV
run: Example/OpenCV-OSX-Tests/install-opencv.sh
- uses: actions/cache@v2.1.1
id: pods-cache
with:
path: Example/Pods
key: macos-pods-${{ hashFiles('**/Podfile.lock') }}
- name: Install Cocoapods dependencies
if: steps.pods-cache.outputs.cache-hit != 'true'
run: pod install --project-directory=Example
- name: All Tests
uses: sersoft-gmbh/xcodebuild-action@v1.1
with:
workspace: Example/PerspectiveTransform.xcworkspace
scheme: OpenCV Tests