-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (61 loc) · 1.68 KB
/
build-release.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
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Build and Release
on:
push:
tags:
- 'v*'
jobs:
build-arm:
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
pip install -r requirements.txt
- name: Build application for ARM
run: pyinstaller --onefile --name jjkiller_arm jjkiller/main.py
- name: Upload ARM artifact
uses: actions/upload-artifact@v4.3.3
with:
name: jjkiller_arm
path: dist/jjkiller_arm
build-intel:
runs-on: macos-11
steps:
- name: Checkout code
uses: actions/checkout@v4.1.6
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
pip install -r requirements.txt
- name: Build application for Intel
run: pyinstaller --onefile --name jjkiller_intel jjkiller/main.py
- name: Upload Intel artifact
uses: actions/upload-artifact@v4.3.3
with:
name: jjkiller_intel
path: dist/jjkiller_intel
combine-binaries:
runs-on: macos-latest
needs: [build-arm, build-intel]
steps:
- name: Download ARM artifact
uses: actions/download-artifact@v4.1.7
with:
name: jjkiller_arm
path: dist_arm
- name: Download Intel artifact
uses: actions/download-artifact@v4.1.7
with:
name: jjkiller_intel
path: dist_intel
- name: Create release
id: create_release
uses: softprops/action-gh-release@v2.0.5
with:
files: |
dist_arm/jjkiller_arm
dist_intel/jjkiller_intel