-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add automated build workflow, major rewrite
- Loading branch information
Showing
9 changed files
with
723 additions
and
355 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,40 @@ | ||
name: PyInstaller Build Windows | ||
|
||
on: | ||
push: | ||
tags: ['v*'] | ||
pull_request: | ||
tags: ['v*'] | ||
|
||
jobs: | ||
build: | ||
name: Build Release | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set Up Python Environment | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel setuptools pyinstaller | ||
(test -f requirements.txt && pip install -r requirements.txt) || echo "'requirements.txt' does not exist, skipping dependency installation" | ||
- name: Install UPX | ||
run: | | ||
Invoke-WebRequest https://github.com/upx/upx/releases/download/v3.96/upx-3.96-win64.zip -OutFile ./upx-3.96-win64.zip | ||
Expand-Archive -Path upx-3.96-win64.zip -DestinationPath . | ||
Move-Item -Path upx-3.96-win64/upx.* -Destination . | ||
- name: Build Windows Executable | ||
run: | | ||
pyinstaller --clean -y --dist ./dist/windows --upx-dir . build.spec | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: ./dist/windows/*.exe |
Oops, something went wrong.