Skip to content

Commit

Permalink
Use micromamba in place of miniconda
Browse files Browse the repository at this point in the history
  • Loading branch information
mdpiper committed Oct 19, 2023
1 parent d28c46d commit 0e4d3e7
Showing 1 changed file with 12 additions and 17 deletions.
29 changes: 12 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,35 +23,30 @@ jobs:
build-type: [Release]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
mamba-version: "*"
channels: conda-forge,defaults
channel-priority: true

- name: Show conda installation info
run: conda info

- name: Install build tools and dependencies into env
run: |
mamba install make cmake c-compiler pkg-config
mamba list
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: latest
environment-name: testing
create-args: >-
make
cmake
c-compiler
pkg-config
- name: Make cmake build directory
run: cmake -E make_directory build

- name: Configure cmake (unix)
- name: Configure CMake (unix)
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
working-directory: ${{ github.workspace }}/build
run: |
cmake .. \
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} \
-DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX
- name: Configure cmake (windows)
- name: Configure CMake (windows)
if: matrix.os == 'windows-latest'
working-directory: ${{ github.workspace }}\build
shell: pwsh
Expand Down

0 comments on commit 0e4d3e7

Please sign in to comment.