Skip to content

Commit

Permalink
Add create-exe workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff S committed Nov 30, 2021
1 parent 0345aa9 commit 360b489
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/create-exe.yml
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

0 comments on commit 360b489

Please sign in to comment.