Skip to content

Commit adc9cb9

Browse files
committed
Test 19
1 parent 30d2d67 commit adc9cb9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/rust.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,17 @@ jobs:
4949
run: python3 -m pip install -U matplotlib
5050
- name: Setup Miniconda
5151
if: startsWith(matrix.build, 'anaconda macos')
52-
uses: conda-incubator/[email protected].3
52+
uses: conda-incubator/[email protected].4
5353
- name: Install Matplotlib (Anaconda)
5454
if: startsWith(matrix.build, 'anaconda')
5555
run: $CONDA/bin/conda install conda-forge::matplotlib
5656
- name: Install Rust (rustup)
5757
run: |
5858
rustup update --no-self-update
5959
rustup default ${{ matrix.rust }}
60+
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
6061
- run: cargo build -v
62+
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
6163
- run: cargo test
6264
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
6365
- run: cargo run --example a_simple_example
@@ -71,8 +73,16 @@ jobs:
7173
- name: Run example with Anaconda on MacOS
7274
continue-on-error: true
7375
if: startsWith(matrix.build, 'anaconda macos')
76+
shell: bash
7477
run: |
7578
eval "$($CONDA/bin/conda shell.bash activate)"
7679
export DYLD_LIBRARY_PATH=$CONDA_PREFIX/lib
80+
echo "** Install Rust"
81+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o install_rust
82+
chmod +x install_rust
83+
./install_rust -y
84+
echo "** rustup update"
85+
rustup update --no-self-update
86+
rustup default ${{ matrix.rust }}
7787
cargo run --example a_simple_example
7888
cargo run --example flower

0 commit comments

Comments
 (0)