summaryrefslogtreecommitdiffstats
path: root/ci/azure-cross-compile.yml
blob: 74acaee282f40671083d2bc53ff3a7f4e4d752cf (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
jobs:
- job: ${{ parameters.name }}
  displayName: ${{ parameters.displayName }}
  strategy:
    matrix:
      i686:
        vmImage: ubuntu-16.04
        target: i686-unknown-linux-gnu
      powerpc:
        vmImage: ubuntu-16.04
        target: powerpc-unknown-linux-gnu
      powerpc64:
        vmImage: ubuntu-16.04
        target: powerpc64-unknown-linux-gnu
      mips:
        vmImage: ubuntu-16.04
        target: mips-unknown-linux-gnu
      arm:
        vmImage: ubuntu-16.04
        target: arm-linux-androideabi
  pool:
    vmImage: $(vmImage)
  steps:
  - template: azure-install-rust.yml
    parameters:
      rust_version: ${{ parameters.rust }}

  - script: sudo apt-get update
    displayName: apt-get update

  - script: sudo apt-get install gcc-multilib
    displayName: Install gcc-multilib

  - script: cargo install cross
    displayName: Install cross

  # Always patch
  - template: azure-patch-crates.yml

  - script: cross check --all --exclude tokio-tls --target $(target)
    displayName: Check source

  # - script: cross check --tests --all --exclude tokio-tls --target $(target)
  #   displayName: Check tests