name: Continuous integration

on: [push, pull_request]

jobs:
  ci:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os:
          - ubuntu-latest
          - macOS-latest
        toolchain:
          - stable
          - beta
          - nightly
        target:
          - arm-linux-androideabi
          - armv7-linux-androideabi
          - aarch64-linux-android
          - i686-linux-android

    steps:
      - uses: actions/checkout@v2

      - name: Install Rust ${{ matrix.toolchain }}
        uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: ${{ matrix.toolchain }}
          target: ${{ matrix.target }}

      - name: Cargo check
        uses: actions-rs/cargo@v1
        with:
          command: check
          args: --target ${{ matrix.target }}

      - name: Generate docs
        uses: actions-rs/cargo@v1
        with:
          command: doc

      - name: Run tests
        uses: actions-rs/cargo@v1
        with:
          command: test
          args: --target ${{ matrix.target }}

name: Continuous integration

on: [push, pull_request]

jobs:
  ci:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os:
          - ubuntu-latest
          - macOS-latest
        toolchain:
          - stable
          - beta
          - nightly
        target:
          - arm-linux-androideabi
          - armv7-linux-androideabi
          - aarch64-linux-android
          - i686-linux-android

    steps:
      - uses: actions/checkout@v2

      - name: Install Rust ${{ matrix.toolchain }}
        uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: ${{ matrix.toolchain }}
          target: ${{ matrix.target }}

      - name: Cargo check
        uses: actions-rs/cargo@v1
        with:
          command: check

      - name: Generate docs
        uses: actions-rs/cargo@v1
        with:
          command: doc

      - name: Run tests
        uses: actions-rs/cargo@v1
        with:
          command: test

Use toolchain target rather than cross compiling
Use toolchain target rather than cross compiling
