Skip to content

Commit

Permalink
attempt to build using pyinstaller
Browse files Browse the repository at this point in the history
  • Loading branch information
lobis committed Aug 28, 2024
1 parent c66ca41 commit 3c568c0
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/viewer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: feminos-viewer-build

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build-test:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]

defaults:
run:
shell: bash -l {0}

steps:
- name: Setup conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: 3.12
miniforge-variant: Mambaforge
use-mamba: true

- uses: actions/checkout@v4

# package with pyinstaller the tk application
- name: Install dependencies
run: |
mamba install pyinstaller
mamba install -c conda-forge -r viewer/requirements
- name: Build
run: |
pyinstaller viewer/feminos-viewer.py --onefile --name feminos-viewer
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: feminos-viewer-${{ matrix.os }}
path: dist/feminos-viewer${{ matrix.os == 'windows-latest' && '.exe' || '' }}

0 comments on commit 3c568c0

Please sign in to comment.