parameters:
  vmImage: ubuntu-16.04

jobs:
  - job: ${{ parameters.name }}
    displayName: Cross
    strategy:
      matrix:
        iOS_64:
          vmImage: macOS-10.13
          target: x86_64-apple-ios

        iOS_32:
          vmImage: macOS-10.13
          target: i386-apple-ios

        iOS_ARM:
          vmImage: macOS-10.13
          target: armv7s-apple-ios

        Android:
          vmImage: ubuntu-16.04
          target: arm-linux-androideabi

        Android_ARM64:
          vmImage: ubuntu-16.04
          target: aarch64-linux-android

        Android_32:
          vmImage: ubuntu-16.04
          target: i686-unknown-linux-gnu

        NetBSD:
          vmImage: ubuntu-16.04
          target: x86_64-unknown-netbsd

        Solaris:
          vmImage: ubuntu-16.04
          target: x86_64-sun-solaris

    pool:
      vmImage: $(vmImage)

    steps:
      - template: azure-install-rust.yml
        parameters:
          rust_version: stable

      - script: rustup target add $(target)
        displayName: "Add target"

      - script: cargo check --target $(target)
        displayName: Check source

      - script: cargo check --tests --target $(target) --all-features
        displayName: Check tests

      - script: cargo check --examples --target $(target) --all-features
        displayName: Check examples

parameters:
  vmImage: ubuntu-16.04

jobs:
  - job: ${{ parameters.name }}
    displayName: Cross
    strategy:
      matrix:
        iOS_64:
          vmImage: macOS-10.13
          target: x86_64-apple-ios

        iOS_ARM64:
          vmImage: macOS-10.13
          target: aarch64-apple-ios

        Android_ARM:
          vmImage: ubuntu-16.04
          target: arm-linux-androideabi

        Android_ARM64:
          vmImage: ubuntu-16.04
          target: aarch64-linux-android

        Android_32:
          vmImage: ubuntu-16.04
          target: i686-unknown-linux-gnu

        NetBSD:
          vmImage: ubuntu-16.04
          target: x86_64-unknown-netbsd

        Solaris:
          vmImage: ubuntu-16.04
          target: x86_64-sun-solaris

    pool:
      vmImage: $(vmImage)

    steps:
      - template: azure-install-rust.yml
        parameters:
          rust_version: stable

      - script: rustup target add $(target)
        displayName: "Add target"

      - script: cargo check --target $(target)
        displayName: Check source

      - script: cargo check --tests --target $(target) --all-features
        displayName: Check tests

      - script: cargo check --examples --target $(target) --all-features
        displayName: Check examples

Remove 32bit iOS and replace ARM with ARM 64 bit iOS in CI
Remove 32bit iOS and replace ARM with ARM 64 bit iOS in CI

Both i386 and armv7s iOS targets are no longer supported by Rust (or
Apple for the matter), so remove them both from the CI.

And use the aarch64 (ARM 64 bit) iOS target instead.
