@@ -49,15 +49,16 @@ jobs:
49
49
run : python3 -m pip install -U matplotlib
50
50
- name : Setup Miniconda
51
51
if : startsWith(matrix.build, 'anaconda macos')
52
- uses :
conda-incubator/[email protected] .3
52
+ uses :
conda-incubator/[email protected] .4
53
53
- name : Install Matplotlib (Anaconda)
54
54
if : startsWith(matrix.build, 'anaconda')
55
55
run : $CONDA/bin/conda install conda-forge::matplotlib
56
56
- name : Install Rust (rustup)
57
57
run : |
58
58
rustup update --no-self-update
59
59
rustup default ${{ matrix.rust }}
60
- - run : cargo build -v
60
+ - run : cargo build
61
+ if : ${{ ! startsWith(matrix.build, 'anaconda') }}
61
62
- run : cargo test
62
63
if : ${{ ! startsWith(matrix.build, 'anaconda') }}
63
64
- run : cargo run --example a_simple_example
71
72
- name : Run example with Anaconda on MacOS
72
73
continue-on-error : true
73
74
if : startsWith(matrix.build, 'anaconda macos')
75
+ shell : bash
74
76
run : |
75
77
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
77
82
cargo run --example a_simple_example
78
83
cargo run --example flower
0 commit comments