Skip to content

Commit 25424ed

Browse files
committed
add ci
1 parent c1956a0 commit 25424ed

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
cmd: ".\\scripts\\setup_windows.bat \"C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.43.34808\\bin\\Hostx64\\x64\\lib.exe\" && cd example\\winApp && msbuild winApp.vcxproj /t:Build /p:Configuration=Release /p:Platform=x64"
3434
- os: macos-latest
3535
cmd: "./gradlew :example:webApp:jsBrowserDistribution"
36+
- os: ubuntu-latest
37+
cmd: "./scripts/build_linux_demo.sh"
3638
runs-on: ${{ matrix.os }}
3739
permissions:
3840
pull-requests: write

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ Open the project (the repo root dir) in Android studio, and run the example.andr
8989
# open example\winApp\winApp.sln in Visual Studio 2022, and run it.
9090
```
9191

92+
### Linux
93+
94+
```bash
95+
./scripts/build_linux_demo.sh
96+
./example/linuxApp/build/loopback <path to video file>
97+
```
98+
9299
### JS
93100

94101
```bash
@@ -115,6 +122,14 @@ File structure for Windows:
115122
- kmp-webrtc
116123
```
117124

125+
File structure for Linux:
126+
127+
```
128+
- webrtc_android
129+
- src
130+
- kmp-webrtc
131+
```
132+
118133
### Android
119134

120135
CPP code need to be built on Linux.
@@ -148,6 +163,14 @@ In `x64 Native Tools Command Prompt for VS 2022`:
148163
.\sdk\build_windows_libs.bat ..\..\kmp-webrtc
149164
```
150165

166+
### Linux
167+
168+
```bash
169+
pushd ../webrtc_android/src/ && \
170+
./sdk/build_linux_libs.sh ../../kmp-webrtc/libs --skip-build-ffmpeg && \
171+
popd
172+
```
173+
151174
### Upload libs zip
152175

153176
```bash

scripts/build_linux_demo.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
./scripts/setup_linux.sh
6+
7+
mkdir example/linuxApp/build
8+
9+
pushd example/linuxApp/build
10+
cmake ..
11+
make
12+
popd

0 commit comments

Comments
 (0)