-
Notifications
You must be signed in to change notification settings - Fork 4
63 lines (60 loc) · 2.07 KB
/
build-apk-patcher.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Build APK Patcher
on: [workflow_dispatch]
jobs:
build:
name: Build packages
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
target: Windows
cmd-install: |
python -m venv env
.\env\Scripts\activate
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
cmd-build: |
cd tools\apk-patcher
..\..\env\Scripts\pyinstaller apk-patcher_windows.spec
out-name: mltd-relive-apk-patcher-windows
- os: ubuntu-latest
target: Ubuntu
cmd-install: |
python -m venv env
source env/bin/activate
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
cmd-build: |
cd tools/apk-patcher
../../env/bin/pyinstaller apk-patcher_ubuntu.spec
out-name: mltd-relive-apk-patcher-ubuntu
- os: macos-latest
target: macOS
cmd-install: |
python -m venv env
source env/bin/activate
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
cmd-build: |
cd tools/apk-patcher
../../env/bin/pyinstaller apk-patcher_macos.spec
cd dist
zip -r9 mltd-relive-apk-patcher-macos.zip mltd-relive-apk-patcher.app
out-name: mltd-relive-apk-patcher-macos
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies for ${{ matrix.target }}
run: ${{ matrix.cmd-install }}
- name: Build with PyInstaller for ${{ matrix.target }}
run: ${{ matrix.cmd-build }}
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.out-name }}
path: tools/apk-patcher/dist