Skip to content

Use aarch64-apple-ios for anaconda on MacOS #91

Use aarch64-apple-ios for anaconda on MacOS

Use aarch64-apple-ios for anaconda on MacOS #91

Workflow file for this run

name: Cargo Build & Test
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build: [stable, beta, nightly, linux32, macos, win64, windows-latest]
include:
- build: stable
os: ubuntu-latest
rust: stable
target: x86_64-unknown-linux-gnu
- build: beta
os: ubuntu-latest
rust: beta
target: x86_64-unknown-linux-gnu
- build: nightly
os: ubuntu-latest
rust: nightly
target: x86_64-unknown-linux-gnu
- build: linux32
os: ubuntu-latest
rust: stable
target: i686-unknown-linux-gnu
- build: anaconda linux
os: ubuntu-latest
rust: stable
target: x86_64-unknown-linux-gnu
- build: macos
os: macos-latest
rust: stable
target: x86_64-apple-darwin
- build: anaconda macos
os: macos-latest
rust: stable
target: x86_64-apple-darwin
- build: windows-aarch64
os: windows-latest
rust: stable
target: aarch64-pc-windows-msvc
- build: win64
os: windows-latest
rust: stable
target: x86_64-pc-windows-msvc
- build: windows-latest
os: windows-latest
rust: stable-x86_64
target: x86_64-pc-windows-msvc
steps:
- uses: actions/checkout@master
- run: git submodule init
- run: git submodule update
- run: sudo apt install gcc-multilib
if: startsWith(matrix.os, 'ubuntu')
- uses: actions/setup-python@v5
with:
python-version: '3.12'
if: ${{ ! startsWith(matrix.build, 'anaconda') && ! startsWith(matrix.build, 'linux32') }}
- name: Install Python 32 bits
run: sudo apt install ia32-libs python3:i386
if: startsWith(matrix.build, 'linux32')
- name: Install Matplotlib (pip)
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
run: pip install matplotlib
- name: Install Matplotlib (Anaconda)
if: startsWith(matrix.build, 'anaconda')
run: $CONDA/bin/conda install conda-forge::matplotlib
- name: Install Rust (rustup)
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
shell: bash
- run: rustup default ${{ matrix.rust }}-${{ matrix.target }}
- run: cargo build -vv
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
- run: cargo test
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
- run: cargo run --example a_simple_example
if: ${{ ! startsWith(matrix.build, 'anaconda') }}
- name: Run example with Anaconda on Linux
if: startsWith(matrix.build, 'anaconda linux')
run: |
eval "$($CONDA/bin/conda shell.bash activate)"
export LD_LIBRARY_PATH=$CONDA_PREFIX/lib
cargo run --example a_simple_example
- name: Run example with Anaconda on MacOS
if: startsWith(matrix.build, 'anaconda macos')
run: |
source $($CONDA/bin/conda info --base)/bin/activate
export DYLD_LIBRARY_PATH=$CONDA_PREFIX/lib
cargo run --example a_simple_example -vv