Skip to content

Commit

Permalink
Test 26
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris00 committed May 4, 2024
1 parent 30d2d67 commit 763eec1
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,20 @@ jobs:
python-version: '3.12'
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
- name: Install Matplotlib (pip)
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
run: python3 -m pip install -U matplotlib
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
- name: Setup Miniconda
uses: conda-incubator/[email protected]
if: startsWith(matrix.build, 'anaconda macos')
uses: conda-incubator/[email protected]
- name: Install Matplotlib (Anaconda)
if: startsWith(matrix.build, 'anaconda')
run: $CONDA/bin/conda install conda-forge::matplotlib
- name: Install Rust (rustup)
run: |
rustup update --no-self-update
rustup default ${{ matrix.rust }}
- run: cargo build -v
if: startsWith(matrix.build, 'anaconda')
- name: Install Rust ${{ matrix.rust }}
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
- run: cargo build
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
- run: cargo test
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
- run: cargo run --example a_simple_example
Expand All @@ -66,13 +67,17 @@ jobs:
if: startsWith(matrix.build, 'anaconda linux')
run: |
eval "$($CONDA/bin/conda shell.bash activate)"
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib
#export LD_LIBRARY_PATH=$CONDA_PREFIX/lib
mkdir -p target/debug/deps
ln -s $CONDA_PREFIX/lib/libpython* target/debug/deps
cargo run --example a_simple_example
- name: Run example with Anaconda on MacOS
continue-on-error: true
if: startsWith(matrix.build, 'anaconda macos')
shell: bash
run: |
eval "$($CONDA/bin/conda shell.bash activate)"
export DYLD_LIBRARY_PATH=$CONDA_PREFIX/lib
mkdir -p target/debug/deps
ln -s $CONDA_PREFIX/lib/libpython* target/debug/deps
cargo run --example a_simple_example
cargo run --example flower

0 comments on commit 763eec1

Please sign in to comment.