Skip to content

Commit

Permalink
added build yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Odizinne committed Aug 5, 2024
1 parent 42da702 commit c861be4
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
name: Build and Release

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and Release

on:
push:
branches:
- main

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12.4'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build executable
run: python src/setup.py build

- name: Zip HeadsetControl-Qt folder
run: |
$zipFile = "build/HeadsetControl-Qt_win64.zip"
$folder = "build/HeadsetControl-Qt"
Compress-Archive -Path $folder -DestinationPath $zipFile
shell: pwsh

- name: Upload HeadsetControl-Qt zip
uses: actions/upload-artifact@v3
with:
name: HeadsetControl-Qt
path: build/HeadsetControl-Qt_win64.zip

0 comments on commit c861be4

Please sign in to comment.