Skip to content

Commit

Permalink
Update build targets
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Jerphanion <[email protected]>
  • Loading branch information
jjerphan committed Nov 26, 2024
1 parent 5e6387c commit f991d41
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/conda_canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- uses: actions/checkout@v4
with:
ref: 'main'
- name: create mamba build environment
- name: Create mamba build environment
uses: mamba-org/setup-micromamba@v2
with:
environment-name: build_env
Expand All @@ -50,29 +50,27 @@ jobs:
variant: sccache
key: conda-canary-${{ github.job }}
restore-keys: conda-canary-
- name: build libmamba Python bindings
- name: Build mamba, libmamba, and libmambapy bindings
run: |
cmake -B build/ -G Ninja \
-D CMAKE_INSTALL_PREFIX=$CONDA_PREFIX \
-D BUILD_LIBMAMBAPY=ON \
-D BUILD_LIBMAMBA=ON \
-D BUILD_SHARED=ON \
-D BUILD_MAMBA_PACKAGE=ON \
-D BUILD_MAMBA=ON \
-D CMAKE_CXX_COMPILER_LAUNCHER=sccache \
-D CMAKE_C_COMPILER_LAUNCHER=sccache
cmake --build build/ --parallel
cmake --install build/
- name: install libmambapy
- name: Install libmambapy
run: pip install -e ./libmambapy/ --no-deps
- name: build cache statistics
- name: Build cache statistics
run: sccache --show-stats
- name: install mamba
run: pip install ./mamba[test] --no-deps

# Test Mamba with Conda nightly
- name: run mamba tests suite
- name: Run mamba tests suite
run: pytest -v --capture=tee-sys mamba/tests
- name: run mamba create/update tests
- name: Run mamba create/update tests
run: |
mamba create -n test_env xtensor -c conda-forge -y
mamba env create -f mamba/tests/test_env.yml
Expand Down

0 comments on commit f991d41

Please sign in to comment.