@@ -7,11 +7,11 @@ This action sets up a `base`
7
7
available in ` $CONDA `
8
8
- installing a specific (or latest) version of
9
9
- [ Miniconda3] [ miniconda-repo ]
10
- - [ Miniforge] [ miniforge-releases ] (or Mambaforge)
10
+ - [ Miniforge] [ miniforge-releases ]
11
11
- any [ constructor] -based installer by or URL or filesystem path
12
12
13
13
A ` conda-build-version ` or ` mamba-version ` may be provided to install specific
14
- versions of ` conda ` or ` mamba ` into ` base `
14
+ versions of ` conda ` or ` mamba ` into ` base ` .
15
15
16
16
The base ` condabin/ ` folder is added to ` $PATH ` and shell integration is
17
17
initialized across all platforms.
@@ -403,6 +403,10 @@ jobs:
403
403
404
404
# ## Example 6: Mamba
405
405
406
+ > Note: `conda` 23.10+ uses `conda-libmamba-solver` by default, which provides
407
+ > comparable performance to `mamba`. Most users won't need this setting with
408
+ > recent conda versions.
409
+
406
410
Experimental! Use `mamba` to enable much faster conda installs. `mamba-version`
407
411
accepts a version string `x.y` (including `"*"`). It requires you specify
408
412
` conda-forge` as part of the channels, ideally with the highest priority.
@@ -509,40 +513,8 @@ jobs:
509
513
miniforge-version: latest
510
514
` ` `
511
515
512
- In addition to `Miniforge3` with `conda` and `CPython`, for each of its many
513
- supported platforms and architectures, additional variants including
514
- ` Mambaforge` (which comes pre-installed `mamba` in addition to `conda` on all
515
- platforms) and `Miniforge-pypy3`/`Mamabaforge-pypy3` (which replace `CPython`
516
- with `pypy3` on Linux/MacOS) are available.
517
-
518
- ` ` ` yaml
519
- jobs:
520
- example-10-mambaforge:
521
- name: Ex10 (${{ matrix.os }}, Mambaforge)
522
- runs-on: ${{ matrix.os }}-latest
523
- strategy:
524
- fail-fast: false
525
- matrix:
526
- os: ["ubuntu", "macos", "windows"]
527
- include:
528
- - os: ubuntu
529
- environment-file: etc/example-environment-no-name.yml
530
- miniforge-variant: Mambaforge
531
- miniforge-version: 4.9.2-4
532
- - os: windows
533
- environment-file: etc/example-explicit.Windows.conda.lock
534
- condarc-file: etc/example-condarc.yml
535
- miniforge-variant: Mambaforge
536
- steps:
537
- - uses: actions/checkout@v4
538
- - uses: conda-incubator/setup-miniconda@v3
539
- with:
540
- condarc-file: ${{ matrix.condarc-file }}
541
- environment-file: ${{ matrix.environment-file }}
542
- miniforge-variant: ${{ matrix.miniforge-variant }}
543
- miniforge-version: ${{ matrix.miniforge-version }}
544
- use-mamba: true
545
- ` ` `
516
+ In addition to `Miniforge3` with `conda`, `mamba` and `CPython`, you can also
517
+ install `Miniforge-pypy3`, which replaces `CPython` with `PyPy.
546
518
547
519
# ## Example 11: Alternative Architectures
548
520
@@ -678,13 +650,11 @@ The first installation step should setup a Miniconda variant without specifying
678
650
a environment file.
679
651
680
652
` ` ` yaml
681
- - name: Setup Mambaforge
653
+ - name: Setup Miniforge
682
654
uses: conda-incubator/setup-miniconda@v3
683
655
with:
684
- miniforge-variant: Mambaforge
685
656
miniforge-version: latest
686
657
activate-environment: anaconda-client-env
687
- use-mamba: true
688
658
` ` `
689
659
690
660
It's a good idea to refresh the cache every 24 hours to avoid inconsistencies of
0 commit comments