Skip to content

Commit a3af9e1

Browse files
committed
Added Github Actions Worker
1 parent ff1cab5 commit a3af9e1

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Build Android APK and Video Server
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Make gradlew executable (Android)
17+
run: chmod +x gradlew
18+
working-directory: ./Andorid
19+
20+
- name: Build APK
21+
run: ./gradlew assembleDebug
22+
working-directory: ./Andorid
23+
24+
- name: Upload APK artifact
25+
uses: actions/upload-artifact@v4
26+
with:
27+
name: debug-apk
28+
path: Andorid/app/build/outputs/apk/debug/app-debug.apk
29+
30+
- name: Set up JDK
31+
uses: actions/setup-java@v4
32+
with:
33+
distribution: 'temurin'
34+
java-version: '17'
35+
36+
- name: Make gradlew executable (VideoServer)
37+
run: chmod +x gradlew
38+
working-directory: ./VideoServer
39+
40+
- name: Build VideoServer
41+
run: ./gradlew build
42+
working-directory: ./VideoServer
43+
44+
- name: Upload VideoServer jar artifact
45+
uses: actions/upload-artifact@v4
46+
with:
47+
name: video-server-jar
48+
path: VideoServer/build/libs/*.jar

0 commit comments

Comments
 (0)