-
Notifications
You must be signed in to change notification settings - Fork 6
71 lines (60 loc) · 1.65 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Build PyInstaller
on:
push:
schedule:
- cron: '15 16 * * 3,6'
jobs:
build:
name: Build package
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
with:
repository: pyinstaller/pyinstaller
ref: v5.13.2
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Build 64-bit bootloader
run: |
cd bootloader
python waf distclean all --target-arch=64bit
- name: Build 32-bit bootloader
run: |
cd bootloader
python waf distclean all --target-arch=32bit
- name: Build packages
run: |
python -m pip install wheel
python setup.py sdist bdist_wheel
- name: Archive packages
uses: actions/upload-artifact@v3
with:
name: dist
path: dist/*
publish:
name: Publish package
permissions:
contents: write
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Download archived package
uses: actions/download-artifact@v3
with:
name: dist
- name: Find dist files
id: files
run: echo "::set-output name=FILES::$(find -type f -printf '%p ')"
- name: Publish snapshot package
uses: meeDamian/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: snapshot
body: "Snapshot build"
files: ${{ steps.files.outputs.FILES }}
allow_override: true
gzip: false