-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (42 loc) · 1.53 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
name: Build
on: [push, workflow_dispatch]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.7.9", "3.8.10", "3.9.13", "3.10.11"]
architecture: ["x64"] # disable x86 for now
name: Python ${{ matrix.python-version }}-${{ matrix.architecture }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}
- name: Install dependencies
run: pip install -U wheel build[virtualenv] setuptools
- uses: ilammy/msvc-dev-cmd@v1
name: Set up MSVC
- name: Build application
env:
GITHUB_ACTIONS: 1
PYTHON_VERSION: ${{ matrix.python-version }}
PYTHON_ARCHITECTURE: ${{ matrix.architecture }}
run: python builder.py
- name: Upload zip artifact
uses: actions/upload-artifact@v3
with:
name: Zip archive (${{ matrix.python-version }}-${{ matrix.architecture }})
path: pyunity-editor.zip
- name: Upload 7z artifact
uses: actions/upload-artifact@v3
with:
name: 7z archive (${{ matrix.python-version }}-${{ matrix.architecture }})
path: pyunity-editor.7z
- name: Upload self-extracting artifact
uses: actions/upload-artifact@v3
with:
name: Self-extracting archive (${{ matrix.python-version }}-${{ matrix.architecture }})
path: pyunity-editor-install.exe