mirror of
https://github.com/zhigang1992/PerspectiveTransform.git
synced 2026-01-12 17:32:51 +08:00
* add macos workflow * update opencv install script * cache OpenCV brew installation * update badge
34 lines
1.1 KiB
YAML
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
|