From a8fce617cff19c0493bf89881e4ec2d35d5a2a8f Mon Sep 17 00:00:00 2001 From: Christophe Troestler Date: Wed, 1 May 2024 10:37:18 +0200 Subject: [PATCH] Test 23 --- .github/workflows/rust.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index ea36702..92473e3 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -49,7 +49,7 @@ jobs: run: python3 -m pip install -U matplotlib - name: Setup Miniconda if: startsWith(matrix.build, 'anaconda macos') - uses: conda-incubator/setup-miniconda@v3.0.3 + uses: conda-incubator/setup-miniconda@v3.0.4 - name: Install Matplotlib (Anaconda) if: startsWith(matrix.build, 'anaconda') run: $CONDA/bin/conda install conda-forge::matplotlib @@ -57,7 +57,8 @@ jobs: run: | rustup update --no-self-update rustup default ${{ matrix.rust }} - - run: cargo build -v + - run: cargo build + if: ${{ ! startsWith(matrix.build, 'anaconda') }} - run: cargo test if: ${{ ! startsWith(matrix.build, 'anaconda') }} - run: cargo run --example a_simple_example @@ -71,8 +72,12 @@ jobs: - name: Run example with Anaconda on MacOS continue-on-error: true if: startsWith(matrix.build, 'anaconda macos') + shell: bash run: | eval "$($CONDA/bin/conda shell.bash activate)" - export DYLD_LIBRARY_PATH=$CONDA_PREFIX/lib + export DYLD_LIBRARY_PATH=$CONDA_PREFIX/lib/py + mkdir $CONDA_PREFIX/lib/py + ln -s $CONDA_PREFIX/lib/libpython* $DYLD_LIBRARY_PATH + PYO3_PRINT_CONFIG=1 cargo build cargo run --example a_simple_example cargo run --example flower