Skip to content

Commit f692bc1

Browse files
authored
conda: avoid defaults channel (#4195)
* make sure to setup conda with conda-forge, mamba avoids defaults channel, quicker installs * bootstrap miniforge instead of miniconda avoids defaults channel * run conda build on PRs to conda workflow
1 parent e08aa5e commit f692bc1

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/conda.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
name: Conda install
22

33
on:
4+
# build on push/pr to this file
5+
push:
6+
paths:
7+
- .github/workflows/conda.yml
48
# Uncomment the below 'push' to trigger on push
5-
#push:
69
# branches:
710
# - "**"
11+
pull_request:
12+
paths:
13+
- .github/workflows/conda.yml
814
schedule:
915
# '*' is a special character in YAML, so string must be quoted
1016
- cron: "0 2 * * WED"
@@ -36,17 +42,20 @@ jobs:
3642
- uses: conda-incubator/setup-miniconda@v4
3743
with:
3844
auto-update-conda: true
45+
channels: conda-forge
46+
mamba-version: ">=2.6"
47+
miniforge-version: latest
3948
python-version: ${{ matrix.python-version }}
4049

4150
# TODO: These could probably be merged into one cross-platform step.
4251
- name: Install DOLFINx with MPICH (Unix-like)
4352
if: ${{ runner.os == 'macOS' || runner.os == 'Linux' }}
4453
run: |
45-
conda install -c conda-forge fenics-dolfinx mpich petsc=*=${{ matrix.petsc-scalar-type }}*
54+
mamba install fenics-dolfinx mpich petsc=*=${{ matrix.petsc-scalar-type }}*
4655
- name: Install DOLFINx (Windows)
4756
if: ${{ runner.os == 'Windows' }}
4857
run: |
49-
conda install -c conda-forge fenics-dolfinx
58+
mamba install fenics-dolfinx
5059
5160
- name: Test (Unix-like)
5261
if: ${{ runner.os == 'macOS' || runner.os == 'Linux' }}

0 commit comments

Comments
 (0)