-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (35 loc) · 1.07 KB
/
windows_pyinstaller.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
name: Windows Pyinstaller
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule:
- cron: '0 0 1,15 * *'
env:
GST_REGISTRY: '~/registry.bin'
KIVY_GL_BACKEND: 'angle_sdl2'
SETUPTOOLS_USE_DISTUTILS: local
jobs:
windows_pyinstaller:
runs-on: windows-latest
strategy:
matrix:
python: [ '3.11' ]
arch: ['x64', 'x86']
if: github.event_name != 'pull_request' && (github.event_name == 'schedule' || (github.event_name == 'create' && github.event.ref_type == 'tag') || contains(github.event.head_commit.message, '[build windows run]')) || contains(github.event.pull_request.title, '[build windows run]')
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
architecture: ${{ matrix.arch }}
- name: Pyinstaller Package
run: |
python tools/build/build_windows.py
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: package
path: 'dist/**'