Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

miniforge-version support for ARM64 #312

Closed
a-cesari opened this issue Nov 23, 2023 · 5 comments · Fixed by #331
Closed

miniforge-version support for ARM64 #312

a-cesari opened this issue Nov 23, 2023 · 5 comments · Fixed by #331

Comments

@a-cesari
Copy link

Dear all,
I'm trying to setup miniforge and to use mamba on a arm64 runner on Github Workflow.
Here my setup:

image

However the ARM64 arch is not supperted when used with the miniforge-version keyword (while with miniconda it's possible).

By the way I'm asking this because my miniconda setup suddenly stopped to work giving me this error:

image

Thanks for your help!

@jaimergp
Copy link
Member

Hi, thanks for the report! In the meantime, you can probably get by with using the direct url for latest, via installer-url, I think?

https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-Linux-aarch64.sh

@a-cesari
Copy link
Author

Thanks @jaimergp ,

the installation it's now working. However I get an error when calling mamba activate myenv saying that I should run mamba init (even if I'm using bash -el {0} which was working for conda activate command).
Conda activate works well.

ravnoor added a commit to ravnoor/ANTsPy that referenced this issue Dec 22, 2023
@rouault
Copy link

rouault commented Jan 30, 2024

As of today, github has made M1 ARM64 available : https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/ . It would be great if setup-miniconda would support "architecture: arm64" for it

@traversaro
Copy link

traversaro commented Jan 30, 2024

As of today, github has made M1 ARM64 available : https://github.blog/changelog/2024-01-30-github-actions-introducing-the-new-m1-macos-runner-available-to-open-source/ . It would be great if setup-miniconda would support "architecture: arm64" for it

If anyone is interested in a quick workaround until it is properly supported, as suggested earlier by @jaimergp it is possible to use installer-url, something like the following seems to be working fine:

    - uses: conda-incubator/setup-miniconda@v3
      if: matrix.os != 'macos-14'
      with:
        miniforge-variant: Mambaforge
        miniforge-version: latest

    - uses: conda-incubator/setup-miniconda@v3
      if: matrix.os == 'macos-14'
      with:
        installer-url: https://github.com/conda-forge/miniforge/releases/download/23.11.0-0/Mambaforge-23.11.0-0-MacOSX-arm64.sh

@jezdez
Copy link
Member

jezdez commented Jan 31, 2024

I've opened #331 to fix it. Feel free to trial with (to be removed after merge):

- uses: jezdez/setup-miniconda@arm64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants