summaryrefslogtreecommitdiffstats
path: root/third_party/rust/mio/ci/azure-cross-compile.yml
blob: c7db94f43da7ad04cb91bb928493b55c1609d03c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
parameters:
  vmImage: ubuntu-16.04

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

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

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

      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)
      displayName: Check tests

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

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

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

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