Porównaj commity

...

8 Commity

Autor SHA1 Wiadomość Data
Mark Jessop f1d86851c1
Merge pull request #37 from teamtoadprojects/github-actions
Add initial Windows Github Actions binary build
2024-04-06 18:47:04 +10:30
Tom Wardill 608f0897a3
Fix generated filename
This is a zip file, so it should have a zip extension
2024-04-04 09:47:17 +01:00
Tom Wardill e92264923b
Fix capitalisation
pyAudio != pyaudio
2024-04-04 09:42:20 +01:00
Tom Wardill b364e842f0
Use python 3.11
Install pyaudio directly from pip now.
2024-04-04 09:40:01 +01:00
Tom Wardill e8e0e210ad Add artifact upload 2024-04-03 16:18:23 +01:00
Tom Wardill c9a208e700 PyInstaller steps 2024-04-03 16:18:20 +01:00
Tom Wardill 1c38f331bd Install python dependencies 2024-04-03 16:18:17 +01:00
Tom Wardill fd1886caff Build windows binary using Github Actions 2024-04-03 16:18:13 +01:00
1 zmienionych plików z 64 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,64 @@
name: Build
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
jobs:
build:
runs-on: [windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout horusdemodlib
uses: actions/checkout@v4
with:
repository: "projecthorus/horusdemodlib"
ref: "master"
path: "horusdemodlib"
- name: Build horusdemodlib
run: |
cd horusdemodlib
mkdir build
cd build
cmake .. -G "MinGW Makefiles"
mingw32-make
- uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip' # caching pip dependencies
- name: Install pyAudio wheel
run: pip install pyaudio
- name: Install other dependencies
run: pip install -r requirements.txt
- name: Install pyinstaller
run: pip install pyinstaller
- name: Prep file locations
shell: bash
run: |
mkdir -p dist
cp horusdemodlib/build/src/libhorus.dll .
cp "C:\Program Files\Git\mingw64\bin\libgcc_s_seh-1.dll" .
cp "C:\Program Files\Git\mingw64\bin\libstdc++-6.dll" .
cp "C:\Program Files\Git\mingw64\bin\libwinpthread-1.dll" .
- name: Run pyinstaller
run: pyinstaller horus-gui_win.spec
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: horus-gui.zip
path: dist/horus-gui.exe
retention-days: 2