Refactor config and pyinstaller build #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Executables | |
on: | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
build-macos-executables: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Pythonx` | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
pip install poetry | |
poetry install | |
brew install nvm | |
poetry run install-dashboard | |
brew install python-tk | |
- name: Build executables | |
run: | | |
poetry run python -m openadapt.build | |
cd dist | |
zip -r ../OpenAdapt.app.zip OpenAdapt.app | |
cd ../ | |
- name: Upload executables | |
uses: actions/upload-artifact@v3 | |
with: | |
name: OpenAdapt.app | |
path: OpenAdapt.app.zip | |
build-windows-executables: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 21 | |
- name: Install dependencies | |
run: | | |
pip install poetry | |
poetry install | |
cd openadapt/app/dashboard | |
npm install | |
cd ../../../ | |
- name: Build executables | |
run: | | |
poetry run python -m openadapt.build | |
cd dist | |
7z a -tzip ../OpenAdapt.zip OpenAdapt | |
cd ../ | |
- name: Upload executables | |
uses: actions/upload-artifact@v3 | |
with: | |
name: OpenAdapt | |
path: OpenAdapt.zip |