Skip to content

add deploy to ilastik-forge via ci #4

add deploy to ilastik-forge via ci

add deploy to ilastik-forge via ci #4

Workflow file for this run

name: deploy
# on:
# push:
# tags:
# - '1.*'
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
package:
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
environment: conda-deploy
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
auto-activate-base: true
activate-environment: bld-env
environment-file: .github/workflows/etc/bld-environment.yml
miniforge-variant: Miniforge3
use-mamba: true
# - name: install build dependencies
# run: |
# mamba install -n base -c conda-forge boa setuptools_scm anaconda-client -y
# mamba config --set anaconda_upload yes
# - name: linux conda build and upload
# shell: bash -l {0}
# env:
# ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
# run: |
# mamba install -n base -c conda-forge boa setuptools_scm anaconda-client -y
# mamba config --set anaconda_upload yes
# xvfb-run --server-args="-screen 0 1024x768x24" \
# conda mambabuild -c pytorch -c ilastik-forge -c conda-forge \
# --user ilastik-forge \
# conda-recipe
- name: linux conda build
if: matrix.os == 'ubuntu-latest'
shell: bash -l {0}
run: conda mambabuild -c conda-forge conda-recipe
- name: osx conda build
if: matrix.os == 'macos-latest'
shell: bash -l {0}
run: conda mambabuild -c conda-forge conda-recipe
- name: windows conda build
if: matrix.os == 'windows-latest'
shell: cmd /C CALL {0}
run: conda mambabuild -c conda-forge conda-recipe