Skip to content

Commit

Permalink
ci: use setup-miniconda@v3
Browse files Browse the repository at this point in the history
  • Loading branch information
fabinsch committed Jan 10, 2025
1 parent b72e27f commit 2301f33
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 44 deletions.
30 changes: 8 additions & 22 deletions .github/workflows/ci-linux-osx-win-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,40 +57,29 @@ jobs:
with:
submodules: recursive

- uses: conda-incubator/setup-miniconda@v2
if: matrix.os != 'macos-14'
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
channels: conda-forge
python-version: "3.10"
activate-environment: proxsuite

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

- name: Install dependencies [Conda]
shell: bash -l {0}
run: |
# Workaround for https://github.com/conda-incubator/setup-miniconda/issues/186
conda config --remove channels defaults
# Compilation related dependencies
mamba install cmake compilers make pkg-config doxygen ninja graphviz typing_extensions llvm-openmp clang
conda install cmake compilers make pkg-config doxygen ninja graphviz typing_extensions llvm-openmp clang
# Main dependencies
mamba install eigen simde
conda install eigen simde
# Test dependencies
mamba install libmatio numpy scipy
conda install libmatio numpy scipy
- name: Install julia [macOS/Linux]
if: contains(matrix.os, 'macos-latest') || contains(matrix.os, 'ubuntu')
- name: Install julia [Linux]
if: contains(matrix.os, 'ubuntu')
shell: bash -l {0}
run: |
mamba install julia
conda install julia
- name: Activate ccache [Conda]
uses: hendrikmuhs/[email protected]
Expand All @@ -102,7 +91,7 @@ jobs:
shell: bash -l {0}
run: |
conda info
mamba list
conda list
env
- name: Configure [Conda/Linux&macOS]
Expand Down Expand Up @@ -142,7 +131,6 @@ jobs:
shell: bash -l {0}
run: |
echo $(where ccache)
ls C:\\Miniconda3\\envs\\proxsuite\\Library\\lib
git submodule update --init
mkdir build
cd build
Expand All @@ -155,7 +143,6 @@ jobs:
shell: bash -l {0}
run: |
echo $(where ccache)
ls C:\\Miniconda3\\envs\\proxsuite\\Library\\lib
git submodule update --init
mkdir build
cd build
Expand All @@ -168,7 +155,6 @@ jobs:
shell: bash -l {0}
run: |
echo $(where ccache)
ls C:\\Miniconda3\\envs\\proxsuite\\Library\\lib
git submodule update --init
mkdir build
cd build
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ jobs:
with:
submodules: recursive

- uses: conda-incubator/setup-miniconda@v2
- uses: conda-incubator/setup-miniconda@v3
with:
miniforge-variant: Mambaforge
miniforge-version: latest
channels: conda-forge
python-version: "3.10"
activate-environment: doc

Expand All @@ -27,16 +25,16 @@ jobs:
conda config --remove channels defaults
# Compilation related dependencies
mamba install cmake make pkg-config doxygen graphviz
conda install cmake make pkg-config doxygen graphviz
# Main dependencies
mamba install eigen
conda install eigen
- name: Print environment
shell: bash -l {0}
run: |
conda info
mamba list
conda list
env
- name: Configure
Expand Down
19 changes: 3 additions & 16 deletions .github/workflows/release-osx-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,38 +35,25 @@ jobs:
git submodule update
- name: Setup conda
if: contains(matrix.os, 'macos-13') || contains(matrix.os, 'windows')
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
miniforge-version: latest
channels: conda-forge
python-version: ${{ matrix.python-version }}
activate-environment: proxsuite

- name: Setup conda
if: matrix.os == 'macos-14'
uses: conda-incubator/setup-miniconda@v3
with:
channels: conda-forge
miniforge-version: latest
python-version: ${{ matrix.python-version }}
activate-environment: proxsuite
installer-url: https://github.com/conda-forge/miniforge/releases/download/23.11.0-0/Mambaforge-23.11.0-0-MacOSX-arm64.sh

- name: Install dependencies [Conda]
if: contains(matrix.os, 'macos') || contains(matrix.os, 'windows')
shell: bash -l {0}
run: |
# Workaround for https://github.com/conda-incubator/setup-miniconda/issues/186
conda config --remove channels defaults
mamba install doxygen graphviz eigen simde cmake compilers typing_extensions
conda install doxygen graphviz eigen simde cmake compilers typing_extensions
- name: Print environment [Conda]
if: contains(matrix.os, 'macos') || contains(matrix.os, 'windows')
shell: bash -l {0}
run: |
conda info
mamba list
conda list
env
- name: Build wheel
Expand Down

0 comments on commit 2301f33

Please sign in to comment.