Skip to content

Include the option to turn calibration on and off. I did this because… #26

Include the option to turn calibration on and off. I did this because…

Include the option to turn calibration on and off. I did this because… #26

name: Build and Release on Version Tag
on:
push:
tags:
- '*'
jobs:
build-windows-exe:
runs-on: windows-2022
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.10.12
environment-file: environment.yml
activate-environment: flowcytometertool
auto-activate-base: false
- name: Install PyInstaller
shell: bash -l {0}
run: conda install -c conda-forge pyinstaller
- name: Build executable with PyInstaller
shell: bash -l {0}
run: pyinstaller flow_cytometer_tool.spec
- name: Upload executable
uses: actions/upload-artifact@v4
with:
name: distributable
path: dist/**
upload-release-asset:
needs: [build-windows-exe]
runs-on: ubuntu-latest
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: distributable
path: ./artifact
- name: List downloaded files
run: ls -R ./artifact
- name: Zip distributable
run: |
cd artifact
zip -r ../distributable.zip ./*
- name: Upload release asset
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref }}
name: "Windows Executable"
files: distributable.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run-linux-backend:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Miniconda
run: |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
export PATH="$HOME/miniconda/bin:$PATH"
conda init bash
source $HOME/.bashrc # Ensure the shell is reloaded
- name: Create Conda environment
run: |
conda env create -f environment.yml
- name: Run backend logic without GUI
run: |
source $HOME/miniconda/etc/profile.d/conda.sh
conda activate /usr/share/miniconda/envs/flowcytometertool
python flow_cytometer_tool.py --nogui