@@ -45,19 +45,20 @@ jobs:
45
45
python-version : ' 3.12'
46
46
if : ${{ ! startsWith(matrix.build, 'anaconda') }}
47
47
- name : Install Matplotlib (pip)
48
- if : ${{ ! startsWith(matrix.build, 'anaconda') }}
49
48
run : python3 -m pip install -U matplotlib
49
+ if : ${{ ! startsWith(matrix.build, 'anaconda') }}
50
50
- name : Setup Miniconda
51
+ uses :
conda-incubator/[email protected]
51
52
if : startsWith(matrix.build, 'anaconda macos')
52
- uses :
conda-incubator/[email protected]
53
53
- name : Install Matplotlib (Anaconda)
54
- if : startsWith(matrix.build, 'anaconda')
55
54
run : $CONDA/bin/conda install conda-forge::matplotlib
56
- - name : Install Rust (rustup)
57
- run : |
58
- rustup update --no-self-update
59
- rustup default ${{ matrix.rust }}
60
- - run : cargo build -v
55
+ if : startsWith(matrix.build, 'anaconda')
56
+ - name : Install Rust
57
+ uses : dtolnay/rust-toolchain@stable
58
+ with :
59
+ toolchain : ${{ matrix.rust }}
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
+ mkdir -p target/debug/deps
82
+ ln -s target/debug/deps $CONDA_PREFIX/lib/libpython*
77
83
cargo run --example a_simple_example
78
84
cargo run --example flower
0 commit comments