forked from loboris/ktool
-
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
Jeff S
committed
Nov 30, 2021
1 parent
0345aa9
commit 360b489
Showing
1 changed file
with
52 additions
and
0 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: Create Executables | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install pyserial pyinstaller | ||
- name: Create the executable | ||
run: pyinstaller --onefile ktool.py | ||
|
||
- name: Upload the Mac executable | ||
if: matrix.os == 'macos-latest' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ktool-mac | ||
path: dist/ktool | ||
|
||
- name: Upload the Linux executable | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ktool-linux | ||
path: dist/ktool | ||
|
||
- name: Upload the Windows executable | ||
if: matrix.os == 'windows-latest' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ktool-win.exe | ||
path: dist/ktool.exe |