Add GH workflow for Mac ARM, Intel, and Linux build #4
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 macOS | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: macos-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 --windowed --name="MORagents" --icon="images/moragents.icns" --osx-entitlements-file "build_assets/macOS/MORagents.entitlements" main.py | |
- name: Debug - List contents after PyInstaller | |
run: | | |
echo "Contents of current directory:" | |
ls -R | |
echo "Contents of dist directory:" | |
ls -R dist | |
- name: Move .app to expected location | |
run: | | |
mkdir -p build_assets/macOS/Applications | |
mv dist/MORagents.app build_assets/macOS/Applications/ || echo "Failed to move .app file" | |
- name: Debug - List contents after moving .app | |
run: | | |
echo "Contents of build_assets/macOS:" | |
ls -R build_assets/macOS | |
- name: Install Packages app | |
run: | | |
wget http://s.sudre.free.fr/files/Packages_1211_dev.dmg | |
hdiutil attach Packages_1211_dev.dmg | |
sudo installer -pkg /Volumes/Packages\ 1.2.11/packages/Packages.pkg -target / | |
hdiutil detach /Volumes/Packages\ 1.2.11 | |
- name: Debug - Check Packages installation | |
run: | | |
which packagesbuild | |
packagesbuild --version | |
- name: Create installer package | |
run: | | |
/usr/local/bin/packagesbuild --project build_assets/macOS/MorpheusPackagesSudre.pkgproj | |
- name: Debug - List contents after packaging | |
run: | | |
echo "Contents of build directory:" | |
ls -R build | |
- name: Upload Installer | |
uses: actions/upload-artifact@v4 | |
with: | |
name: MORagentsSetup-macOS | |
path: build/MORagents.pkg |