Multiclass segmentation outputs supported, added user preferences opt… #118
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 Ubuntu | |
on: | |
push: | |
branches: | |
- '*' | |
pull_request: | |
branches: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
build: | |
name: Build packages | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.7" | |
- name: Install CL dependencies | |
run: | | |
apt update && apt install -y sudo | |
sudo apt install -y clinfo | |
- name: Setup OpenCL | |
run: | | |
sudo add-apt-repository ppa:ocl-icd/ppa | |
sudo apt update | |
sudo apt-get install -y pocl-opencl-icd | |
- name: Setup OpenGL | |
run: sudo apt-get install -y libopengl0 | |
- name: Debug clinfo | |
run: clinfo | |
- name: Free Up GitHub Actions Ubuntu Runner Disk Space | |
uses: dbouget/free-disk-space@main | |
with: | |
# This might remove tools that are actually needed, if set to "true" but frees about 6 GB | |
tool-cache: false | |
# All of these default to true, but feel free to set to "false" if necessary for your workflow | |
android: true | |
dotnet: true | |
haskell: true | |
large-packages: true | |
swap-storage: true | |
- name: Download ANTs | |
uses: robinraju/release-downloader@main | |
with: | |
repository: "raidionics/Raidionics-dependencies" | |
latest: true | |
fileName: "ANTsX-v2.4.3_ubuntu.tar.gz" | |
out-file-path: "downloads" | |
- name: Extract ANTs | |
run: | | |
cd ${{github.workspace}}/downloads/ | |
tar -xzf ANTsX-v2.4.3_ubuntu.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@software | |
pip install -r assets/requirements.txt | |
pip uninstall -y PySide6 PySide6-Addons PySide6-Essentials | |
pip install --force-reinstall --no-cache-dir pyside6==6.2.4 | |
- 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 | |
# run: QT_QPA_PLATFORM="offscreen" ./dist/Raidionics/Raidionics & sleep 5; kill -INT %+ | |
# shell: bash | |
# | |
# - name: Test GUI startup | |
# run: cd ${{github.workspace}}/tests && python software_launch_test.py | |
- name: Make installer | |
run: | | |
mkdir -p assets/Raidionics_ubuntu/usr/local/bin | |
cp -r dist/Raidionics assets/Raidionics_ubuntu/usr/local/bin | |
dpkg-deb --build --root-owner-group assets/Raidionics_ubuntu | |
ls -la | |
cp -r assets/Raidionics_ubuntu.deb dist/Raidionics-1.2.2-ubuntu.deb | |
- name: Upload package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Package | |
path: ${{github.workspace}}/dist/Raidionics-* | |
if-no-files-found: error |