Skip to content

Refactor config and pyinstaller build #1

Refactor config and pyinstaller build

Refactor config and pyinstaller build #1

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 [email protected]
- 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