-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,15 +49,17 @@ jobs: | |
run: python3 -m pip install -U matplotlib | ||
- name: Setup Miniconda | ||
if: startsWith(matrix.build, 'anaconda macos') | ||
uses: conda-incubator/[email protected].3 | ||
uses: conda-incubator/[email protected].4 | ||
- 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 }} | ||
if: ${{ ! startsWith(matrix.build, 'anaconda') }} | ||
- run: cargo build -v | ||
if: ${{ ! startsWith(matrix.build, 'anaconda') }} | ||
- run: cargo test | ||
if: ${{ ! startsWith(matrix.build, 'anaconda') }} | ||
- run: cargo run --example a_simple_example | ||
|
@@ -71,8 +73,16 @@ jobs: | |
- 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 | ||
echo "** Install Rust" | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o install_rust | ||
chmod +x install_rust | ||
./install_rust -y | ||
echo "** rustup update" | ||
rustup update --no-self-update | ||
rustup default ${{ matrix.rust }} | ||
cargo run --example a_simple_example | ||
cargo run --example flower |