-
Notifications
You must be signed in to change notification settings - Fork 9
56 lines (48 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: Build
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
build:
name: Build package
runs-on: windows-latest
strategy:
matrix:
include:
- { sys: mingw64, arch: 64bit, env: x86_64 }
- { sys: mingw32, arch: 32bit, env: i686 }
defaults:
run:
shell: msys2 {0}
steps:
- name: Set up MinGW
uses: msys2/setup-msys2@v2
with:
update: true
msystem: ${{matrix.sys}}
install: >-
base-devel
mingw-w64-${{matrix.env}}-toolchain
mingw-w64-${{matrix.env}}-python
mingw-w64-${{matrix.env}}-python-pip
- name: Checkout
uses: actions/checkout@v3
with:
repository: pyinstaller/pyinstaller
ref: v5.8.0
- name: Build bootloader
run: |
cd bootloader
python waf distclean all --target-arch=${{matrix.arch}} --gcc
- name: Build packages
run: |
python -m pip install wheel
python setup.py sdist bdist_wheel
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
destination_dir: ${{matrix.env}}
keep_files: true