-
Notifications
You must be signed in to change notification settings - Fork 30
108 lines (83 loc) · 2.92 KB
/
build-exe.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: build-exe
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-windows:
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pipenv
run: pipx install pipenv
- name: Install Python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
cache: 'pipenv'
- name: Setup environment
run: pipenv install
- name: Build the executable using cx_freeze
run: pipenv run python ./cxfreeze_setup.py build -b win64
- name: Compress the executable
run: tar.exe -acf gparch_cli_win64.zip win64
- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: gparch_cli_win64
path: gparch_cli_win64.zip
retention-days: 7
build-linux:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pipenv
run: pipx install pipenv
- name: Install Python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
cache: 'pipenv'
- name: Setup environment
run: pipenv install
- name: Build the executable using cx_freeze
run: pipenv run python ./cxfreeze_setup.py build -b linux
- name: Compress the executable
run: tar -czvf gparch_cli_linux.tar.gz linux
- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: gparch_cli_linux
path: gparch_cli_linux.tar.gz
retention-days: 7
build-macos:
# The type of runner that the job will run on
runs-on: macos-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pipenv
run: pipx install pipenv
- name: Install Python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
cache: 'pipenv'
- name: Setup environment
run: pipenv install
- name: Build the executable using cx_freeze
run: pipenv run python ./cxfreeze_setup.py build -b macos
- name: Compress the executable
run: zip -r gparch_cli_macos.zip macos
- name: Upload executable
uses: actions/upload-artifact@v3
with:
name: gparch_cli_macos
path: gparch_cli_macos.zip
retention-days: 7