-
Notifications
You must be signed in to change notification settings - Fork 79
56 lines (53 loc) · 1.29 KB
/
build.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
name: Auto build for windows
on:
push:
branches: [ '*' ]
tags: [ 'v*.*.*' ]
pull_request:
branches: [ '*' ]
jobs:
windows:
runs-on: windows-2022
steps:
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.12'
architecture: x64
- uses: actions/checkout@v4
- name: Install dependencies
run: |
pip install pyinstaller dnspython[doh,doq] rich
pip install -r requirements.txt
- name: Package Application
run: |
pyinstaller accesser.spec
env:
PYTHONOPTIMIZE: 1
- uses: actions/upload-artifact@v4
with:
name: windows
path: ./dist/
windows-lite:
runs-on: windows-2022
steps:
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.12'
architecture: x64
- uses: actions/checkout@v4
- name: Install dependencies
run: |
pip install pyinstaller
pip install -r requirements.txt
- name: Package Application
run: |
sed -i 's/^ \+\"https/# \"https/' accesser/rules.toml
pyinstaller accesser.spec
env:
PYTHONOPTIMIZE: 1
- uses: actions/upload-artifact@v4
with:
name: windows-lite
path: ./dist/