Skip to content

Commit cd8aa7b

Browse files
authored
Create manual-build-macos.yml
1 parent b8cf5c5 commit cd8aa7b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This is a basic workflow that is manually triggered
2+
3+
name: Manual workflow
4+
5+
# Controls when the action will run. Workflow runs when manually triggered using the UI
6+
# or API.
7+
on:
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: ['macos-latest']
17+
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: actions/setup-python@v2
21+
with:
22+
python-version: 3.10.7
23+
- run: make poetry
24+
- run: ~/Library/Application Support/pypoetry/venv/bin/poetry install
25+
- run: ~/Library/Application Support/pypoetry/venv/bin/poetry run python scripts/download-tools.py
26+
- run: ~/Library/Application Support/pypoetry/venv/bin/poetry run python 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"
27+
# Optionally verify that it works (provided that it does not need user interaction)
28+
#- run: ./dist/your-code/your-code
29+
- uses: actions/upload-artifact@v3
30+
with:
31+
name: openandroidinstaller-${{ github.sha }}-${{ matrix.os }}
32+
path: dist/

0 commit comments

Comments
 (0)