File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build QT5 CaptureStream2 with MXE
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ build-app :
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - name : Checkout mxe-builder repository
12+ uses : actions/checkout@v4
13+
14+ - name : Clone CaptureStream2 repository
15+ run : |
16+ git clone --depth=1 https://github.com/CSReviser/CaptureStream2.git app
17+
18+ - name : Install GitHub CLI
19+ run : sudo apt-get update && sudo apt-get install -y gh
20+
21+ - name : Download MXE artifact from Release
22+ env :
23+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
24+ run : |
25+ gh release download mxe-qt5-v1 \
26+ --repo ${{ github.repository }} \
27+ --pattern "mxe-x86_64-w64-mingw32.static.tar.gz"
28+
29+ - name : Extract MXE environment
30+ run : |
31+ mkdir mxe
32+ tar -xzf mxe-x86_64-w64-mingw32.static.tar.gz
33+
34+ - name : Build CaptureStream2 with qmake (MXE)
35+ env :
36+ MXE_PATH : ${{ github.workspace }}/mxe
37+ run : |
38+ export PATH=$MXE_PATH/usr/bin:$PATH
39+ export QT_QMAKE=$MXE_PATH/usr/x86_64-w64-mingw32.static/qt5/bin/qmake
40+ cd app
41+ mkdir build
42+ cd build
43+ $QT_QMAKE ../CaptureStream2.pro
44+ make -j$(nproc)
45+
46+ - name : Tar files
47+ run : tar cvf CaptureStream2.tar app/build/release/*.exe
48+
49+ - name : Upload built app
50+ uses : actions/upload-artifact@v4
51+ with :
52+ name : capturestream2-windows-qt5
53+ path : CaptureStream2.tar
You can’t perform that action at this time.
0 commit comments