Skip to content

Commit a8fce61

Browse files
committed
Test 23
1 parent 30d2d67 commit a8fce61

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/rust.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,16 @@ jobs:
4949
run: python3 -m pip install -U matplotlib
5050
- name: Setup Miniconda
5151
if: startsWith(matrix.build, 'anaconda macos')
52-
uses: conda-incubator/[email protected].3
52+
uses: conda-incubator/[email protected].4
5353
- name: Install Matplotlib (Anaconda)
5454
if: startsWith(matrix.build, 'anaconda')
5555
run: $CONDA/bin/conda install conda-forge::matplotlib
5656
- name: Install Rust (rustup)
5757
run: |
5858
rustup update --no-self-update
5959
rustup default ${{ matrix.rust }}
60-
- run: cargo build -v
60+
- run: cargo build
61+
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
6162
- run: cargo test
6263
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
6364
- run: cargo run --example a_simple_example
@@ -71,8 +72,12 @@ jobs:
7172
- name: Run example with Anaconda on MacOS
7273
continue-on-error: true
7374
if: startsWith(matrix.build, 'anaconda macos')
75+
shell: bash
7476
run: |
7577
eval "$($CONDA/bin/conda shell.bash activate)"
76-
export DYLD_LIBRARY_PATH=$CONDA_PREFIX/lib
78+
export DYLD_LIBRARY_PATH=$CONDA_PREFIX/lib/py
79+
mkdir $CONDA_PREFIX/lib/py
80+
ln -s $CONDA_PREFIX/lib/libpython* $DYLD_LIBRARY_PATH
81+
PYO3_PRINT_CONFIG=1 cargo build
7782
cargo run --example a_simple_example
7883
cargo run --example flower

0 commit comments

Comments
 (0)