diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 91c3d84..42d9f82 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -37,7 +37,7 @@ jobs: - build: anaconda macos os: macos-latest rust: stable - target: x86_64-apple-darwin + target: aarch64-apple-darwin - build: aarch64-ios os: macos-latest rust: stable @@ -71,8 +71,11 @@ jobs: - name: Install Rust (rustup) run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }} shell: bash - - run: rustup target add ${{ matrix.target }} + - run: | + rustup target add ${{ matrix.target }} + rustup toolchain default stable-${{ 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