Update spec file and create GitHub workflow
This commit is contained in:
parent
7a6df24109
commit
6dad9d8a9b
2 changed files with 38 additions and 17 deletions
33
.github/workflows/build_artifacts.yaml
vendored
Normal file
33
.github/workflows/build_artifacts.yaml
vendored
Normal 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/
|
Loading…
Add table
Add a link
Reference in a new issue