openalea / github-action-conda-build

A Github workflow to build your software package and publish to an Anaconda repository.
MIT License
0 stars 1 forks source link

How to set the conda directory location #2

Open pradal opened 7 months ago

pradal commented 7 months ago

I need to set the conda directory location in a complex repository: openalea-component

Various packages are tested independently. So I need to inform each one to build pylab, pkgbuilder and the like. How to do so?

Something like

with:
    conda : pylab/conda
thomasarsouze commented 7 months ago

It should work like that. Default conda (directory with conda recipe) parameter value is conda but you can indeed specify

with:
    conda: pylab/conda

and possibly repeat the call to the action as many times as necessary for openalea-component changing this value of conda parameter

pradal commented 7 months ago

Could I set an order? For instance I need to build stdlib before others...

thomasarsouze commented 7 months ago

I guess you can define your workflow that'll wait for the end of one job to start another one. Something like:

jobs:
  build:
    steps:
      - name: build-stdlib
         uses: openalea/github-action-conda-build/.github/workflows/conda-package-build.yml@main
           with:
             conda: stdlib/conda
           secrets: 
             anaconda_token: ${{ secrets.ANACONDA_TOKEN }}
      - name: build-pylab
         uses: openalea/github-action-conda-build/.github/workflows/conda-package-build.yml@main
           with:
             conda: pylab/conda
           secrets: 
             anaconda_token: ${{ secrets.ANACONDA_TOKEN }}