diff --git a/.github/workflows/android-demos.yml b/.github/workflows/android-demos.yml new file mode 100644 index 0000000..e13bcf4 --- /dev/null +++ b/.github/workflows/android-demos.yml @@ -0,0 +1,35 @@ +name: Android Demos + +on: + workflow_dispatch: + push: + branches: [ main ] + paths: + - '.github/workflows/android-demos.yml' + - 'demo/android/**' + - '!demo/android/EagleDemo/README.md' + pull_request: + branches: [ main, 'v[0-9]+.[0-9]+' ] + paths: + - '.github/workflows/android-demos.yml' + - 'demo/android/**' + - '!demo/android/EagleDemo/README.md' + +jobs: + build-eagle-demo: + runs-on: ubuntu-latest + defaults: + run: + working-directory: demo/android/EagleDemo + + steps: + - uses: actions/checkout@v3 + + - name: set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + + - name: Build + run: ./gradlew assembleDebug \ No newline at end of file