Skip to content

Commit 3d64390

Browse files
committed
Adicionado nuitka
1 parent 8d8d044 commit 3d64390

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

.github/workflows/nuitka.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: BuildInstallCoopsNuitka
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
tagname:
6+
description: 'Tag'
7+
required: true
8+
default: ''
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: Set up Python 3.9
15+
uses: actions/setup-python@v1
16+
with:
17+
python-version: 3.9
18+
architecture: 'x64'
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install -r requirements.txt
23+
pip install nuitka
24+
- name: build with nuitka
25+
run: |
26+
python -m nuitka --mingw64 --standalone --assume-yes-for-downloads install_coops_python.py
27+
- uses: actions/upload-artifact@v2
28+
with:
29+
name: install_coops_python.exe
30+
path: host_make.dist\install_coops_python.exe
31+
- name: release
32+
uses: actions/create-release@v1
33+
id: create_release
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
with:
37+
draft: false
38+
prerelease: false
39+
tag_name: ${{ github.event.inputs.tagname }}
40+
release_name: ${{ github.event.inputs.tagename }}
41+
- name: upload windows artifact
42+
uses: actions/upload-release-asset@v1
43+
env:
44+
GITHUB_TOKEN: ${{ github.token }}
45+
with:
46+
upload_url: ${{ steps.create_release.outputs.upload_url }}
47+
asset_path: host_make.dist\install_coops_python.exe
48+
asset_name: host_make.exe
49+
asset_content_type: application/exe
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: BuildInstallCoops
1+
name: BuildInstallCoopsPyinstaller
22
on:
33
workflow_dispatch:
44
inputs:

0 commit comments

Comments
 (0)