Skip to content

Commit 2301f33

Browse files
committed
ci: use setup-miniconda@v3
1 parent b72e27f commit 2301f33

File tree

3 files changed

+15
-44
lines changed

3 files changed

+15
-44
lines changed

.github/workflows/ci-linux-osx-win-conda.yml

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -57,40 +57,29 @@ jobs:
5757
with:
5858
submodules: recursive
5959

60-
- uses: conda-incubator/setup-miniconda@v2
61-
if: matrix.os != 'macos-14'
60+
- uses: conda-incubator/setup-miniconda@v3
6261
with:
63-
miniforge-variant: Mambaforge
6462
miniforge-version: latest
65-
channels: conda-forge
66-
python-version: "3.10"
6763
activate-environment: proxsuite
6864

69-
- uses: conda-incubator/setup-miniconda@v3
70-
if: matrix.os == 'macos-14'
71-
with:
72-
channels: conda-forge
73-
python-version: "3.10"
74-
activate-environment: proxsuite
75-
installer-url: https://github.com/conda-forge/miniforge/releases/download/23.11.0-0/Mambaforge-23.11.0-0-MacOSX-arm64.sh
7665

7766
- name: Install dependencies [Conda]
7867
shell: bash -l {0}
7968
run: |
8069
# Workaround for https://github.com/conda-incubator/setup-miniconda/issues/186
8170
conda config --remove channels defaults
8271
# Compilation related dependencies
83-
mamba install cmake compilers make pkg-config doxygen ninja graphviz typing_extensions llvm-openmp clang
72+
conda install cmake compilers make pkg-config doxygen ninja graphviz typing_extensions llvm-openmp clang
8473
# Main dependencies
85-
mamba install eigen simde
74+
conda install eigen simde
8675
# Test dependencies
87-
mamba install libmatio numpy scipy
76+
conda install libmatio numpy scipy
8877
89-
- name: Install julia [macOS/Linux]
90-
if: contains(matrix.os, 'macos-latest') || contains(matrix.os, 'ubuntu')
78+
- name: Install julia [Linux]
79+
if: contains(matrix.os, 'ubuntu')
9180
shell: bash -l {0}
9281
run: |
93-
mamba install julia
82+
conda install julia
9483
9584
- name: Activate ccache [Conda]
9685
uses: hendrikmuhs/[email protected]
@@ -102,7 +91,7 @@ jobs:
10291
shell: bash -l {0}
10392
run: |
10493
conda info
105-
mamba list
94+
conda list
10695
env
10796
10897
- name: Configure [Conda/Linux&macOS]
@@ -142,7 +131,6 @@ jobs:
142131
shell: bash -l {0}
143132
run: |
144133
echo $(where ccache)
145-
ls C:\\Miniconda3\\envs\\proxsuite\\Library\\lib
146134
git submodule update --init
147135
mkdir build
148136
cd build
@@ -155,7 +143,6 @@ jobs:
155143
shell: bash -l {0}
156144
run: |
157145
echo $(where ccache)
158-
ls C:\\Miniconda3\\envs\\proxsuite\\Library\\lib
159146
git submodule update --init
160147
mkdir build
161148
cd build
@@ -168,7 +155,6 @@ jobs:
168155
shell: bash -l {0}
169156
run: |
170157
echo $(where ccache)
171-
ls C:\\Miniconda3\\envs\\proxsuite\\Library\\lib
172158
git submodule update --init
173159
mkdir build
174160
cd build

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@ jobs:
1212
with:
1313
submodules: recursive
1414

15-
- uses: conda-incubator/setup-miniconda@v2
15+
- uses: conda-incubator/setup-miniconda@v3
1616
with:
17-
miniforge-variant: Mambaforge
1817
miniforge-version: latest
19-
channels: conda-forge
2018
python-version: "3.10"
2119
activate-environment: doc
2220

@@ -27,16 +25,16 @@ jobs:
2725
conda config --remove channels defaults
2826
2927
# Compilation related dependencies
30-
mamba install cmake make pkg-config doxygen graphviz
28+
conda install cmake make pkg-config doxygen graphviz
3129
3230
# Main dependencies
33-
mamba install eigen
31+
conda install eigen
3432
3533
- name: Print environment
3634
shell: bash -l {0}
3735
run: |
3836
conda info
39-
mamba list
37+
conda list
4038
env
4139
4240
- name: Configure

.github/workflows/release-osx-win.yml

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,38 +35,25 @@ jobs:
3535
git submodule update
3636
3737
- name: Setup conda
38-
if: contains(matrix.os, 'macos-13') || contains(matrix.os, 'windows')
39-
uses: conda-incubator/setup-miniconda@v2
40-
with:
41-
miniforge-variant: Mambaforge
42-
miniforge-version: latest
43-
channels: conda-forge
44-
python-version: ${{ matrix.python-version }}
45-
activate-environment: proxsuite
46-
47-
- name: Setup conda
48-
if: matrix.os == 'macos-14'
4938
uses: conda-incubator/setup-miniconda@v3
5039
with:
51-
channels: conda-forge
40+
miniforge-version: latest
5241
python-version: ${{ matrix.python-version }}
5342
activate-environment: proxsuite
54-
installer-url: https://github.com/conda-forge/miniforge/releases/download/23.11.0-0/Mambaforge-23.11.0-0-MacOSX-arm64.sh
5543

5644
- name: Install dependencies [Conda]
5745
if: contains(matrix.os, 'macos') || contains(matrix.os, 'windows')
5846
shell: bash -l {0}
5947
run: |
6048
# Workaround for https://github.com/conda-incubator/setup-miniconda/issues/186
6149
conda config --remove channels defaults
62-
mamba install doxygen graphviz eigen simde cmake compilers typing_extensions
50+
conda install doxygen graphviz eigen simde cmake compilers typing_extensions
6351
6452
- name: Print environment [Conda]
65-
if: contains(matrix.os, 'macos') || contains(matrix.os, 'windows')
6653
shell: bash -l {0}
6754
run: |
6855
conda info
69-
mamba list
56+
conda list
7057
env
7158
7259
- name: Build wheel

0 commit comments

Comments
 (0)