Skip to content

Commit 933269f

Browse files
authored
Create manual-build-windows.yml
1 parent ccc78db commit 933269f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Manual build workflow
2+
3+
on:
4+
workflow_dispatch:
5+
6+
7+
jobs:
8+
build:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: ['windows-latest']
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-python@v2
18+
with:
19+
python-version: 3.9
20+
- run: pip install -r requirements.txt
21+
- run: python scripts/download-tools.py
22+
- run: pyinstaller openandroidinstaller/openandroidinstaller.py --noconsole --noconfirm --onefile --icon "openandroidinstaller/assets/favicon.ico" --add-data "openandroidinstaller/assets;assets" --add-binary "openandroidinstaller/bin/adb;bin" --add-binary "openandroidinstaller/bin/fastboot;bin" --add-binary "openandroidinstaller/bin/heimdall;bin"
23+
# Optionally verify that it works (provided that it does not need user interaction)
24+
#- run: ./dist/your-code/your-code
25+
- uses: actions/upload-artifact@v3
26+
with:
27+
name: openandroidinstaller-${{ github.sha }}-${{ matrix.os }}
28+
path: dist/

0 commit comments

Comments
 (0)