-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (33 loc) · 1.08 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
name: Build executable
on: [workflow_dispatch]
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.x'
- run: |
python -m pip install --upgrade pip
pip install pyinstaller
pyinstaller -n ubuntu-polyglots -F --add-data "polyglots/__init__.py:." --distpath . -w "polyglots/__main__.py"
- uses: actions/upload-artifact@master
with:
name: "ubuntu-polyglots"
path: "ubuntu-polyglots"
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.8'
- run: |
python -m pip install --upgrade pip
pip install nuitka orderedset
python -m nuitka --follow-imports --onefile --assume-yes-for-downloads --disable-console --enable-plugin=tk-inter polyglots\__main__.py -o polyglots.exe
- uses: actions/upload-artifact@master
with:
name: "polyglots.exe"
path: "polyglots.exe"