From b2462cb2553b1d989189bef7cce586e65afca8ff Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Fri, 25 Dec 2020 10:47:37 +0100 Subject: [PATCH] Build on CI --- .github/workflows/CI.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/CI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 000000000..76e7668c3 --- /dev/null +++ b/.github/workflows/CI.yml @@ -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