From 20a6e11fcc58336f56b3cb7ceda0feedf7d31251 Mon Sep 17 00:00:00 2001 From: Christophe Troestler Date: Wed, 17 Apr 2024 22:52:19 +0200 Subject: [PATCH] Use aarch64-apple-ios for anaconda on MacOS --- .github/workflows/rust.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 91c3d84..9707885 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -8,7 +8,7 @@ jobs: strategy: fail-fast: false matrix: - build: [stable, beta, nightly, linux32, macos, aarch64-ios, win64, windows-latest] + build: [stable, beta, nightly, linux32, macos, win64, windows-latest] include: - build: stable os: ubuntu-latest @@ -29,7 +29,7 @@ jobs: - build: anaconda linux os: ubuntu-latest rust: stable - target: i686-unknown-linux-gnu + target: x86_64-unknown-linux-gnu - build: macos os: macos-latest rust: stable @@ -38,10 +38,6 @@ jobs: os: macos-latest rust: stable target: x86_64-apple-darwin - - build: aarch64-ios - os: macos-latest - rust: stable - target: aarch64-apple-ios - build: windows-aarch64 os: windows-latest rust: stable @@ -58,10 +54,15 @@ jobs: - 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') }} + if: ${{ ! startsWith(matrix.build, 'anaconda') && ! startsWith(matrix.build, 'linux32') }} + - name: Install Python 32 bits + run: sudo apt install python3:i386 lib32z1 + if: startsWith(matrix.build, 'linux32') - name: Install Matplotlib (pip) if: ${{ ! startsWith(matrix.build, 'anaconda') }} run: pip install matplotlib @@ -69,10 +70,12 @@ jobs: 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 }} + run: | + rustup update ${{ matrix.rust }} --no-self-update + rustup default ${{ matrix.rust }}-${{ matrix.target }} shell: bash - - run: rustup target add ${{ 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 @@ -88,4 +91,4 @@ jobs: run: | source $($CONDA/bin/conda info --base)/bin/activate export DYLD_LIBRARY_PATH=$CONDA_PREFIX/lib - cargo run --example a_simple_example + cargo run --example a_simple_example -vv