Skip to content

Commit 8e656c2

Browse files
committed
Test 24
1 parent 30d2d67 commit 8e656c2

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/rust.yml

+14-8
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,20 @@ jobs:
4545
python-version: '3.12'
4646
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
4747
- name: Install Matplotlib (pip)
48-
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
4948
run: python3 -m pip install -U matplotlib
49+
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
5050
- name: Setup Miniconda
51+
uses: conda-incubator/[email protected]
5152
if: startsWith(matrix.build, 'anaconda macos')
52-
uses: conda-incubator/[email protected]
5353
- name: Install Matplotlib (Anaconda)
54-
if: startsWith(matrix.build, 'anaconda')
5554
run: $CONDA/bin/conda install conda-forge::matplotlib
55+
if: startsWith(matrix.build, 'anaconda')
5656
- name: Install Rust (rustup)
57-
run: |
58-
rustup update --no-self-update
59-
rustup default ${{ matrix.rust }}
60-
- run: cargo build -v
57+
- uses: dtolnay/rust-toolchain
58+
with:
59+
toolchain: ${{ matrix.rust }}
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,13 @@ 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+
mkdir -p target/debug/deps
82+
ln -s target/debug/deps $CONDA_PREFIX/lib/libpython*
7783
cargo run --example a_simple_example
7884
cargo run --example flower

0 commit comments

Comments
 (0)