@@ -185,55 +185,55 @@ jobs:
185
185
working-directory : sora-cpp-sdk
186
186
run : python3 run.py --debug ${{ matrix.platform.name }}
187
187
188
- # # sora-python-sdk
189
- # - name: Setup sora-python-sdk
190
- # run: |
191
- # sudo apt-get update
192
- # sudo apt-get -y install libva2 libdrm2 libva-dev libdrm-dev libx11-dev portaudio19-dev
188
+ # sora-python-sdk
189
+ - name : Setup sora-python-sdk
190
+ run : |
191
+ sudo apt-get update
192
+ sudo apt-get -y install libva2 libdrm2 libva-dev libdrm-dev libx11-dev portaudio19-dev
193
193
194
- # # Download OpneH264
195
- # curl -LO http://ciscobinary.openh264.org/libopenh264-2.4.1-linux64.7.so.bz2
196
- # bzip2 -d libopenh264-2.4.1-linux64.7.so.bz2
197
- # mv libopenh264-2.4.1-linux64.7.so libopenh264.so
198
- # echo "OPENH264_PATH=`pwd`/libopenh264.so" >> $GITHUB_ENV
199
- # - name: Copy libwebrtc to sora-python-sdk
200
- # run: |
201
- # mkdir -p sora-python-sdk/_install/${{ matrix.platform.name }}/debug
202
- # cp -r webrtc-build/_package/${{ matrix.platform.name }}/webrtc sora-python-sdk/_install/${{ matrix.platform.name }}/debug/webrtc
203
- # echo ${{ steps.version.outputs.webrtc_build_version }} > sora-python-sdk/_install/${{ matrix.platform.name }}/debug/webrtc.version
204
- # - name: Copy sora-cpp-sdk to sora-python-sdk
205
- # run: |
206
- # mkdir -p sora-python-sdk/_install/${{ matrix.platform.name }}/debug
207
- # cp -r sora-cpp-sdk/_package/${{ matrix.platform.name }}/sora sora-python-sdk/_install/${{ matrix.platform.name }}/debug/sora
208
- # echo ${{ steps.version.outputs.sora_cpp_sdk_version }} > sora-python-sdk/_install/${{ matrix.platform.name }}/debug/sora.version
209
- # - name: Copy boost to sora-python-sdk
210
- # run: |
211
- # mkdir -p sora-python-sdk/_install/${{ matrix.platform.name }}/debug
212
- # cp -r boost/_package/${{ matrix.platform.name }}/boost boost/_install/${{ matrix.platform.name }}/debug/boost
213
- # echo ${{ steps.version.outputs.boost_version }} > sora-python-sdk/_install/${{ matrix.platform.name }}/debug/boost.version
214
- # - uses: actions/cache@v4
215
- # id: llvm-cache
216
- # with:
217
- # path: sora-python-sdk/_package/${{ matrix.platform.name }}/llvm
218
- # key: llvm-${{ matrix.platform.name }}-${{ steps.version.outputs.sora_cpp_sdk }}
219
- # - uses: actions/cache@v4
220
- # id: version-file-cache
221
- # with:
222
- # path: versions
223
- # key: versions-${{ matrix.platform.name }}-${{ steps.version.outputs.sora_cpp_sdk }}
224
- # - run: cp versions/llvm.version sora-python-sdk/_install/${{ matrix.platform.name }}/debug/
225
- # - uses: astral-sh/setup-uv@v3
226
- # - name: Build sora-python-sdk
227
- # working-directory: sora-python-sdk
228
- # run: |
229
- # set -x
230
- # # uv python pin ${{ matrix.python_version }}
231
- # uv sync
232
- # uv run python run.py --debug ${{ matrix.platform.target }}
233
- # # cache
234
- # mkdir ../versions
235
- # cp _install/${{ matrix.platform.name }}/debug/llvm.version ../versions
236
- # - name: E2E Test sora-python-sdk
237
- # working-directory: sora-python-sdk
238
- # run: |
239
- # lldb-18 -o 'settings set target.process.follow-fork-mode child' -o run -o continue -o 'bt all' -o 'exit' -- uv run pytest tests -s
194
+ # Download OpneH264
195
+ curl -LO http://ciscobinary.openh264.org/libopenh264-2.4.1-linux64.7.so.bz2
196
+ bzip2 -d libopenh264-2.4.1-linux64.7.so.bz2
197
+ mv libopenh264-2.4.1-linux64.7.so libopenh264.so
198
+ echo "OPENH264_PATH=`pwd`/libopenh264.so" >> $GITHUB_ENV
199
+ - name : Copy libwebrtc to sora-python-sdk
200
+ run : |
201
+ mkdir -p sora-python-sdk/_install/${{ matrix.platform.name }}/debug
202
+ cp -r webrtc-build/_package/${{ matrix.platform.name }}/webrtc sora-python-sdk/_install/${{ matrix.platform.name }}/debug/webrtc
203
+ echo ${{ steps.version.outputs.webrtc_build_version }} > sora-python-sdk/_install/${{ matrix.platform.name }}/debug/webrtc.version
204
+ - name : Copy sora-cpp-sdk to sora-python-sdk
205
+ run : |
206
+ mkdir -p sora-python-sdk/_install/${{ matrix.platform.name }}/debug
207
+ cp -r sora-cpp-sdk/_package/${{ matrix.platform.name }}/sora sora-python-sdk/_install/${{ matrix.platform.name }}/debug/sora
208
+ echo ${{ steps.version.outputs.sora_cpp_sdk_version }} > sora-python-sdk/_install/${{ matrix.platform.name }}/debug/sora.version
209
+ - name : Copy boost to sora-python-sdk
210
+ run : |
211
+ mkdir -p sora-python-sdk/_install/${{ matrix.platform.name }}/debug
212
+ cp -r boost/_package/${{ matrix.platform.name }}/boost boost/_install/${{ matrix.platform.name }}/debug/boost
213
+ echo ${{ steps.version.outputs.boost_version }} > sora-python-sdk/_install/${{ matrix.platform.name }}/debug/boost.version
214
+ - uses : actions/cache@v4
215
+ id : llvm-cache
216
+ with :
217
+ path : sora-python-sdk/_package/${{ matrix.platform.name }}/llvm
218
+ key : llvm-${{ matrix.platform.name }}-${{ steps.version.outputs.sora_cpp_sdk }}
219
+ - uses : actions/cache@v4
220
+ id : version-file-cache
221
+ with :
222
+ path : versions
223
+ key : versions-${{ matrix.platform.name }}-${{ steps.version.outputs.sora_cpp_sdk }}
224
+ - run : cp versions/llvm.version sora-python-sdk/_install/${{ matrix.platform.name }}/debug/
225
+ - uses : astral-sh/setup-uv@v3
226
+ - name : Build sora-python-sdk
227
+ working-directory : sora-python-sdk
228
+ run : |
229
+ set -x
230
+ # uv python pin ${{ matrix.python_version }}
231
+ uv sync
232
+ uv run python run.py --debug ${{ matrix.platform.target }}
233
+ # cache
234
+ mkdir ../versions
235
+ cp _install/${{ matrix.platform.name }}/debug/llvm.version ../versions
236
+ - name : E2E Test sora-python-sdk
237
+ working-directory : sora-python-sdk
238
+ run : |
239
+ lldb-18 -o 'settings set target.process.follow-fork-mode child' -o run -o continue -o 'bt all' -o 'exit' -- uv run pytest tests -s
0 commit comments