Refactor config and pyinstaller build #13
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@3.10 | |
- name: Build executables | |
run: | | |
poetry run python -m openadapt.build | |
zip -r OpenAdapt.app.zip dist/OpenAdapt.app | |
- 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 | |
7z a -tzip OpenAdapt.zip dist/OpenAdapt | |
- name: Upload executables | |
uses: actions/upload-artifact@v3 | |
with: | |
name: OpenAdapt | |
path: OpenAdapt.zip |