mamba-org / setup-micromamba

GitHub Action to set up micromamba
MIT License
105 stars 16 forks source link

Support selectors #162

Closed tdegeus closed 1 year ago

tdegeus commented 1 year ago

I would like to

- name: Create conda environment
  uses: mamba-org/setup-micromamba@main
  with:
    environment-file: environment.yaml
    environment-name: myenv
    init-shell: bash
    cache-downloads: true
    post-cleanup: all
    create-args: |
      sel(win): clang_win-64

but that does not seem to be supported any longer

pavelzw commented 1 year ago

How about something like

- name: Create conda environment
  uses: mamba-org/setup-micromamba@main
  with:
    environment-file: environment.yaml
    environment-name: myenv
    init-shell: bash
    cache-downloads: true
    post-cleanup: all
    create-args: |
      ${{ runner.os == 'Windows' && 'clang_win-64' || '' }}

(untested)

Alternatively, you should still be able to add selectors to environment.yaml.

tdegeus commented 1 year ago

Thanks, that works!