@@ -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 ${{ matrix.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
@@ -66,13 +67,17 @@ jobs:
66
67
if : startsWith(matrix.build, 'anaconda linux')
67
68
run : |
68
69
eval "$($CONDA/bin/conda shell.bash activate)"
69
- export LD_LIBRARY_PATH=$CONDA_PREFIX/lib
70
+ #export LD_LIBRARY_PATH=$CONDA_PREFIX/lib
71
+ mkdir -p target/debug/deps
72
+ ln -s target/debug/deps $CONDA_PREFIX/lib/libpython*
70
73
cargo run --example a_simple_example
71
74
- name : Run example with Anaconda on MacOS
72
75
continue-on-error : true
73
76
if : startsWith(matrix.build, 'anaconda macos')
77
+ shell : bash
74
78
run : |
75
79
eval "$($CONDA/bin/conda shell.bash activate)"
76
- export DYLD_LIBRARY_PATH=$CONDA_PREFIX/lib
80
+ mkdir -p target/debug/deps
81
+ ln -s $CONDA_PREFIX/lib/libpython* target/debug/deps
77
82
cargo run --example a_simple_example
78
83
cargo run --example flower
0 commit comments