Build on CI

This commit is contained in:
Hannes Achleitner 2020-12-25 10:47:37 +01:00
parent bbe352dfff
commit b2462cb255

26
.github/workflows/CI.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: PullRequest
on: [pull_request]
jobs:
buildTest:
name: Build
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v2.3.4
- name: Install Android SDK
uses: malinskiy/action-android/install-sdk@release/0.1.0
- name: Install prerequisite
run: |
brew install opencv@3
brew install python
python --version
pip3 install --user six
- name: Build project
run: |
export ANDROID_HOME=/Users/runner/Library/Android/sdk
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle
echo a | ./build_android_examples.sh
- name: Show result
run: git status