forked from saki4510t/UVCCamera
-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (33 loc) · 1020 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
on: [push, workflow_dispatch]
jobs:
build:
name: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '19'
- uses: nttld/setup-ndk@v1
with:
# NOTE: this must match NDK version in build.gradle `ext.ndkVersion`
ndk-version: r25c
- uses: gradle/gradle-build-action@v2
- run: ./gradlew build
- uses: actions/upload-artifact@v3
with:
name: libuvccamera
path: libuvccamera/build/outputs/aar/*.aar
- uses: actions/upload-artifact@v3
with:
name: usbCameraCommon
path: usbCameraCommon/build/outputs/aar/*.aar
- uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
libuvccamera/build/outputs/aar/*.aar
usbCameraCommon/build/outputs/aar/*.aar