-
Notifications
You must be signed in to change notification settings - Fork 18
47 lines (37 loc) · 1.23 KB
/
publish_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
41
42
43
44
45
46
47
name: Publish PyInstaller distribution to Github Artifacts
on: [push]
jobs:
check:
name: Check PyInstaller for Python ${{ matrix.python_version }} (${{ matrix.architecture }})
strategy:
fail-fast: false
matrix:
python_version: ["3.11"]
architecture: [x64, x86]
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
architecture: ${{ matrix.architecture }}
- uses: TheMrMilchmann/setup-msvc-dev@v3
with:
arch: ${{ matrix.architecture }}
- name: Install Poetry
uses: SG60/setup-poetry@v1
- name: Install Dependencies
run: poetry install
- name: Install PyInstaller
run: poetry run pip install pyinstaller
- name: Build PyInstaller package
run: poetry run pyinstaller themida-unmutate.spec
- name: "Upload PyInstaller Artifact"
uses: actions/upload-artifact@v3
with:
name: themida-unmutate-py${{ matrix.python_version }}-${{ matrix.architecture }}
path: dist/*.exe
retention-days: 3