Skip to content

setup: bump dcnum to 0.25.2 #29

setup: bump dcnum to 0.25.2

setup: bump dcnum to 0.25.2 #29

Workflow file for this run

name: Deploy to GitHub Releases
on:
push:
tags:
- '*'
env:
PYINSTALLER_COMPILE_BOOTLOADER: 1
jobs:
build:
name: Create Release
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10"]
os: [macos-latest, windows-latest]
steps:
- name: Set env
shell: bash
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- uses: actions/checkout@main
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@main
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
# https://github.com/luispedro/mahotas/issues/144
pip install mahotas==1.4.13
pip install .[cli,gui]
# Install CPU versions of torch (smaller file size)
pip install torch==2.3.1 torchvision==0.18.1 -f https://download.pytorch.org/whl/cpu/torch/
- name: Build macOS app
if: runner.os == 'macOS'
working-directory: ./build-recipes
run: |
bash ./macos_build_app.sh ChipStream ${{ env.RELEASE_VERSION }}
- name: Build windows executable
if: runner.os == 'windows'
working-directory: ./build-recipes
run: |
pip uninstall -y pyinstaller
pip install https://github.com/paulmueller/pyinstaller/archive/splash_disable_on_subprocess.zip
pip install -r win_build_requirements.txt
pyinstaller -y --log-level=WARN win_ChipStream.spec
dir
dir dist
dir dist\\ChipStream
# Run the binary (the most simple test)
dist\\ChipStream\\ChipStream.exe --version
python win_make_iss.py
ISCC.exe /Q win_chipstream.iss
- name: Release Assets
uses: softprops/action-gh-release@v1
with:
name: ChipStream ${{ env.RELEASE_VERSION }}
draft: true
prerelease: false
body: |
![](https://img.shields.io/github/downloads/DC-analysis/ChipStream/${{ env.RELEASE_VERSION }}/total.svg)
files: |
./build-recipes/dist/*.dmg
./build-recipes/dist/*.pkg
./build-recipes/Output/*.exe