|
| 1 | +trigger: |
| 2 | + - master |
| 3 | + |
| 4 | +jobs: |
| 5 | + - job: DockerLinux |
| 6 | + pool: |
| 7 | + vmImage: ubuntu-16.04 |
| 8 | + steps: |
| 9 | + - template: ci/azure-install-rust.yml |
| 10 | + - bash: | |
| 11 | + if [ "${NO_DOCKER}" = "1" ]; then |
| 12 | + ci/run.sh $TARGET |
| 13 | + else |
| 14 | + ci/run-docker.sh $TARGET |
| 15 | + fi |
| 16 | + displayName: Execute run-docker.sh |
| 17 | + strategy: |
| 18 | + matrix: |
| 19 | + i586-unknown-linux-gnu: |
| 20 | + TARGET: i586-unknown-linux-gnu |
| 21 | + i686-unknown-linux-gnu: |
| 22 | + TARGET: i686-unknown-linux-gnu |
| 23 | + x86_64-unknown-linux-gnu: |
| 24 | + TARGET: x86_64-unknown-linux-gnu |
| 25 | + x86_64-unknown-linux-gnu-emulated: |
| 26 | + TARGET: x86_64-unknown-linux-gnu-emulated |
| 27 | + STDARCH_TEST_EVERYTHING: 1 |
| 28 | + RUSTFLAGS: --cfg stdarch_intel_sde |
| 29 | + x86_64-linux-android: |
| 30 | + TARGET: x86_64-linux-android |
| 31 | + STDARCH_DISABLE_ASSERT_INSTR: 1 |
| 32 | + arm-unknown-linux-gnueabihf: |
| 33 | + TARGET: arm-unknown-linux-gnueabihf |
| 34 | + arm-linux-androideabi: |
| 35 | + TARGET: arm-linux-androideabi |
| 36 | + STDARCH_DISABLE_ASSERT_INSTR: 1 |
| 37 | + armv7-unknown-linux-gnueabihf: |
| 38 | + TARGET: armv7-unknown-linux-gnueabihf |
| 39 | + RUSTFLAGS: -C target-feature=+neon |
| 40 | + aarch64-unknown-linux-gnu: |
| 41 | + TARGET: aarch64-unknown-linux-gnu |
| 42 | + mips-unknown-linux-gnu: |
| 43 | + TARGET: mips-unknown-linux-gnu |
| 44 | + NORUN: 1 |
| 45 | + mipsel-unknown-linux-musl: |
| 46 | + TARGET: mipsel-unknown-linux-musl |
| 47 | + NORUN: 1 |
| 48 | + mips64-unknown-linux-gnuabi64: |
| 49 | + TARGET: mips64-unknown-linux-gnuabi64 |
| 50 | + NORUN: 1 |
| 51 | + mips64el-unknown-linux-gnuabi64: |
| 52 | + TARGET: mips64el-unknown-linux-gnuabi64 |
| 53 | + NORUN: 1 |
| 54 | + aarch64-linux-android: |
| 55 | + TARGET: aarch64-linux-android |
| 56 | + STDARCH_DISABLE_ASSERT_INSTR: 1 |
| 57 | + #powerpc-unknown-linux-gnu: |
| 58 | + # TARGET: powerpc-unknown-linux-gnu |
| 59 | + # STDARCH_DISABLE_ASSERT_INSTR: 1 |
| 60 | + #powerpc64-unknown-linux-gnu: |
| 61 | + # TARGET: powerpc64-unknown-linux-gnu |
| 62 | + # STDARCH_DISABLE_ASSERT_INSTR: 1 |
| 63 | + powerpc64le-unknown-linux-gnu: |
| 64 | + TARGET: powerpc64le-unknown-linux-gnu |
| 65 | + STDARCH_DISABLE_ASSERT_INSTR: 1 |
| 66 | + s390x-unknown-linux-gnu: |
| 67 | + TARGET: s390x-unknown-linux-gnu |
| 68 | + wasm32-unknown-unknown: |
| 69 | + TARGET: wasm32-unknown-unknown |
| 70 | + nvptx64-nvidia-cuda: |
| 71 | + TARGET: nvptx64-nvidia-cuda |
| 72 | + NORUN: 1 |
| 73 | + NOSTD: 1 |
| 74 | + thumbv6m-none-eabi: |
| 75 | + TARGET: thumbv6m-none-eabi |
| 76 | + NORUN: 1 |
| 77 | + NOSTD: 1 |
| 78 | + NO_DOCKER: 1 |
| 79 | + thumbv7m-none-eabi: |
| 80 | + TARGET: thumbv7m-none-eabi |
| 81 | + NORUN: 1 |
| 82 | + NOSTD: 1 |
| 83 | + NO_DOCKER: 1 |
| 84 | + thumbv7em-none-eabi: |
| 85 | + TARGET: thumbv7em-none-eabi |
| 86 | + NORUN: 1 |
| 87 | + NOSTD: 1 |
| 88 | + NO_DOCKER: 1 |
| 89 | + thumbv7em-none-eabihf: |
| 90 | + TARGET: thumbv7em-none-eabihf |
| 91 | + NORUN: 1 |
| 92 | + NOSTD: 1 |
| 93 | + NO_DOCKER: 1 |
| 94 | + |
| 95 | + - job: DockerOSX64 |
| 96 | + pool: |
| 97 | + vmImage: macos-10.14 |
| 98 | + steps: |
| 99 | + - template: ci/azure-install-rust.yml |
| 100 | + - bash: sh ./ci/run.sh $TARGET |
| 101 | + displayName: Execute run.sh |
| 102 | + strategy: |
| 103 | + matrix: |
| 104 | + x86_64-apple-darwin: |
| 105 | + TARGET: x86_64-apple-darwin |
| 106 | + NO_DOCKER: 1 |
| 107 | + |
| 108 | + - job: DockerOSX32 |
| 109 | + pool: |
| 110 | + vmImage: macos-10.13 |
| 111 | + steps: |
| 112 | + - template: ci/azure-install-rust.yml |
| 113 | + - bash: sh ./ci/run.sh $TARGET |
| 114 | + displayName: Execute run.sh |
| 115 | + strategy: |
| 116 | + matrix: |
| 117 | + i686-apple-darwin: |
| 118 | + TARGET: i686-apple-darwin |
| 119 | + NO_DOCKER: 1 |
| 120 | + |
| 121 | + - job: StyleAndDocs |
| 122 | + pool: |
| 123 | + vmImage: ubuntu-16.04 |
| 124 | + steps: |
| 125 | + - template: ci/azure-install-rust.yml |
| 126 | + - script: sh ci/style.sh |
| 127 | + displayName: Check style |
| 128 | + - script: sh ci/dox.sh |
| 129 | + displayName: Generate and upload documentation |
| 130 | + variables: |
| 131 | + CI: 1 |
| 132 | + |
| 133 | + - job: AutomaticVerification |
| 134 | + pool: |
| 135 | + vmImage: ubuntu-16.04 |
| 136 | + steps: |
| 137 | + - template: ci/azure-install-rust.yml |
| 138 | + - script: cargo test --manifest-path crates/stdarch-verify/Cargo.toml |
| 139 | + displayName: Automatic verification |
| 140 | + |
| 141 | + - job: GameBoyAdvance |
| 142 | + pool: |
| 143 | + vmImage: ubuntu-16.04 |
| 144 | + steps: |
| 145 | + - template: ci/azure-install-rust.yml |
| 146 | + - script: rustup component add rust-src |
| 147 | + displayName: Add rust-src |
| 148 | + - script: (test -x $HOME/.cargo/bin/cargo-xbuild || cargo install cargo-xbuild) |
| 149 | + displayName: Add cargo-xbuild |
| 150 | + # Obtain the devkitPro tools, using `target/` as a temp directory. This |
| 151 | + # is required because we need to use their linker. `lld` uses the `BLX` |
| 152 | + # instruction, which was not available in thumb state code until ARMv5. |
| 153 | + - script: | |
| 154 | + mkdir -p target |
| 155 | + cd target |
| 156 | + wget https://github.com/devkitPro/pacman/releases/download/devkitpro-pacman-1.0.1/devkitpro-pacman.deb |
| 157 | + sudo dpkg -i devkitpro-pacman.deb |
| 158 | + sudo dkp-pacman -Sy |
| 159 | + sudo dkp-pacman -Syu |
| 160 | + sudo dkp-pacman -S -v --noconfirm gba-tools devkitARM |
| 161 | + export PATH="$PATH:/opt/devkitpro/devkitARM/bin" |
| 162 | + export PATH="$PATH:/opt/devkitpro/tools/bin" |
| 163 | + cd .. |
| 164 | + # Pull the target spec up into the current directory and then build |
| 165 | + mv ci/gba.json gba.json |
| 166 | + cargo xbuild -p core_arch --target gba.json |
| 167 | + variables: |
| 168 | + NORUN: 1 |
| 169 | + NOSTD: 1 |
| 170 | + NO_DOCKER: 1 |
0 commit comments