-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
85 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Nuitka | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the "main" branch | ||
push: | ||
branches: ["main"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
# Check-out repository | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' # Version range or exact version of a Python version to use, using SemVer's version range syntax | ||
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified | ||
|
||
# Build python script into a stand-alone exe | ||
- name: Build | ||
uses: actions/setup-python@v4 | ||
with: | ||
script-name: main.py | ||
onefile: true | ||
low-memory: true | ||
standalone: true | ||
enable-console: true | ||
access-token: ${{ secrets.NUITKA_COMMERCIAL_ACCESS_TOKEN }} | ||
# macos-create-app-bundle: ${{ runner.os == 'macOS' }} | ||
|
||
# Uploads artifacts | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ runner.os }} Build | ||
path: | | ||
build/*.exe | ||
build/*.bin | ||
build/*.app/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Pyinstaller | ||
|
||
# Controls when the workflow will run | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the "main" branch | ||
push: | ||
branches: ["main"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
pyinstaller-build: | ||
runs-on: [macos-latest, ubuntu-latest, windows-latest] | ||
|
||
steps: | ||
- name: Create Executable | ||
uses: sayyid5416/pyinstaller@v1 | ||
with: | ||
python_ver: '3.10' | ||
options: --F, --c | ||
|
||
- name: "Upload Artifacts" | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ runner.os }} Build | ||
path: | | ||
dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters