Skip to content

Commit ccc78db

Browse files
authored
Create manual-build.yml
1 parent 01c3e71 commit ccc78db

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/manual-build.yml

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', 'ubuntu-latest', 'macos-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 "/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)