Skip to content

Atlas space display (#82) #120

Atlas space display (#82)

Atlas space display (#82) #120

Workflow file for this run

name: Build macOS
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
workflow_dispatch:
env:
MACOSX_DEPLOYMENT_TARGET: 10.15
jobs:
build:
name: Build packages
runs-on: macos-12
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: "3.8"
- name: Setup OpenGL
run: brew install mesa-glu libxrender libxi libxkbcommon
- name: Download ANTs
uses: robinraju/release-downloader@main
with:
repository: "raidionics/Raidionics-dependencies"
latest: true
fileName: "ANTsX-v2.4.3_macos.tar.gz"
out-file-path: "downloads"
- name: Extract ANTs
run: |
cd ${{github.workspace}}/downloads/
tar -xzf ANTsX-v2.4.3_macos.tar.gz -C ${{github.workspace}}/downloads/
mkdir ${{github.workspace}}/ANTs
mkdir ${{github.workspace}}/ANTs/install
# mv ${{github.workspace}}/downloads/install ${{github.workspace}}/ANTs/
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/dbouget/raidionics_rads_lib.git@master
pip install -r assets/requirements.txt
pip install matplotlib==3.3.4
pip install --force-reinstall --no-cache-dir pyside6
- name: Build software
run: |
pip install pyinstaller==5.13.2
mkdir tmp_dependencies
pyinstaller --log-level INFO --noconfirm --clean assets/main.spec
- name: Test executable
env:
DISPLAY: ':1'
run: QT_QPA_PLATFORM="offscreen" ./dist/Raidionics/Raidionics & sleep 5; kill -INT %+
shell: bash
- name: Test GUI startup
env:
DISPLAY: ':1'
run: |
export QT_QPA_PLATFORM="offscreen"
cd ${{github.workspace}}/tests && python software_launch_test.py
- name: Make installer
run: |
git clone https://github.com/dbouget/quickpkg.git
quickpkg/quickpkg dist/Raidionics.app --output Raidionics-1.2.4-macOS.pkg
cp -r Raidionics-1.2.4-macOS.pkg dist/Raidionics-1.2.4-macOS-x86_64.pkg
- name: Upload package
uses: actions/upload-artifact@v4
with:
name: Package
path: ${{github.workspace}}/dist/Raidionics-*
if-no-files-found: error