Add GH workflow for Mac ARM, Intel, and Linux build #3
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: MOR Agents Build Linux | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install pyinstaller | |
- name: Build with PyInstaller | |
run: | | |
pyinstaller --name="MORagents" --add-data "images/moragents.png:images" main.py | |
- name: Create Debian package | |
run: | | |
mkdir -p debian/DEBIAN | |
mkdir -p debian/usr/bin | |
mkdir -p debian/usr/share/applications | |
mkdir -p debian/usr/share/icons/hicolor/256x256/apps | |
cp -r dist/MORagents/* debian/usr/bin/ | |
cp images/moragents.png debian/usr/share/icons/hicolor/256x256/apps/moragents.png | |
echo "[Desktop Entry] | |
Name=MORagents | |
Exec=/usr/bin/MORagents | |
Icon=moragents | |
Type=Application | |
Categories=Utility;" > debian/usr/share/applications/moragents.desktop | |
echo "Package: moragents | |
Version: 1.0 | |
Section: utils | |
Priority: optional | |
Architecture: amd64 | |
Maintainer: Your Name <[email protected]> | |
Description: MORagents application | |
MORagents is a desktop application for AI agents." > debian/DEBIAN/control | |
cp build_assets/linux/install_moragents.sh debian/usr/bin/ | |
chmod +x debian/usr/bin/install_moragents.sh | |
dpkg-deb --build debian moragents.deb | |
- name: Upload Debian Package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: MORagentsSetup-Linux | |
path: moragents.deb |