Update spec file and create GitHub workflow

This commit is contained in:
Djuri 2024-06-09 14:18:56 +02:00
parent 7a6df24109
commit 6dad9d8a9b
2 changed files with 38 additions and 17 deletions

33
.github/workflows/build_artifacts.yaml vendored Normal file
View file

@ -0,0 +1,33 @@
name: Build artifacts
on:
workflow_dispatch:
inputs:
directory:
description: 'Directory to run Docker command in'
required: true
default: '.'
jobs:
build-windows:
runs-on:
- ubuntu-latest
container:
image: batonogov/pyinstaller-windows:latest
options: --rm
volumes:
- ${{ github.workspace }}:/src/
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Run PyInstaller
run: |
pyinstaller BTClockOTA.spec
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: windows-artifacts
path: dist/