Skip to content

Commit

Permalink
Action: Add github action gradle build
Browse files Browse the repository at this point in the history
This patch adds github action to build android

Signed-off-by: Yelin Jeong <[email protected]>
  • Loading branch information
niley7464 committed Apr 22, 2024
1 parent 57d4da5 commit a76e44b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Android Build Test

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r25c
link-to-sdk: true
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: -${{ github.event.pull_request.commits }}
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
with:
arguments: build
- name: Upload nnstreamer-api aar
uses: actions/upload-artifact@v4
with:
name: nnstreamer-api-aar
path: nnstreamer-api/build/outputs/aar/*

0 comments on commit a76e44b

Please sign in to comment.