|
| 1 | +# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | +steps: |
| 4 | + - label: "build-gnu-x86" |
| 5 | + commands: |
| 6 | + - cargo build --release |
| 7 | + retry: |
| 8 | + automatic: false |
| 9 | + agents: |
| 10 | + platform: x86_64.metal |
| 11 | + plugins: |
| 12 | + - docker#v3.0.1: |
| 13 | + image: "rustvmm/dev:v2" |
| 14 | + always-pull: true |
| 15 | + |
| 16 | + - label: "build-gnu-arm" |
| 17 | + commands: |
| 18 | + - cargo build --release |
| 19 | + retry: |
| 20 | + automatic: false |
| 21 | + agents: |
| 22 | + platform: arm.metal |
| 23 | + plugins: |
| 24 | + - docker#v3.0.1: |
| 25 | + image: "rustvmm/dev:v2" |
| 26 | + always-pull: true |
| 27 | + |
| 28 | + - label: "build-musl-x86" |
| 29 | + commands: |
| 30 | + - cargo build --release --target x86_64-unknown-linux-musl |
| 31 | + retry: |
| 32 | + automatic: false |
| 33 | + agents: |
| 34 | + platform: x86_64.metal |
| 35 | + plugins: |
| 36 | + - docker#v3.0.1: |
| 37 | + image: "rustvmm/dev:v2" |
| 38 | + always-pull: true |
| 39 | + |
| 40 | + - label: "build-musl-arm" |
| 41 | + commands: |
| 42 | + - cargo build --release --target aarch64-unknown-linux-musl |
| 43 | + retry: |
| 44 | + automatic: false |
| 45 | + agents: |
| 46 | + platform: arm.metal |
| 47 | + plugins: |
| 48 | + - docker#v3.0.1: |
| 49 | + image: "rustvmm/dev:v2" |
| 50 | + always-pull: true |
| 51 | + |
| 52 | + - label: "style" |
| 53 | + command: cargo fmt --all -- --check |
| 54 | + retry: |
| 55 | + automatic: false |
| 56 | + agents: |
| 57 | + platform: x86_64.metal |
| 58 | + plugins: |
| 59 | + - docker#v3.0.1: |
| 60 | + image: "rustvmm/dev:v2" |
| 61 | + always-pull: true |
| 62 | + |
| 63 | + - label: "unittests-gnu-x86" |
| 64 | + commands: |
| 65 | + - cargo test --all-features |
| 66 | + retry: |
| 67 | + automatic: false |
| 68 | + agents: |
| 69 | + platform: x86_64.metal |
| 70 | + plugins: |
| 71 | + - docker#v3.0.1: |
| 72 | + privileged: true |
| 73 | + image: "rustvmm/dev:v2" |
| 74 | + always-pull: true |
| 75 | + |
| 76 | + - label: "unittests-gnu-arm" |
| 77 | + commands: |
| 78 | + - cargo test --all-features |
| 79 | + retry: |
| 80 | + automatic: false |
| 81 | + agents: |
| 82 | + platform: arm.metal |
| 83 | + plugins: |
| 84 | + - docker#v3.0.1: |
| 85 | + privileged: true |
| 86 | + image: "rustvmm/dev:v2" |
| 87 | + always-pull: true |
| 88 | + |
| 89 | + - label: "unittests-musl-x86" |
| 90 | + command: |
| 91 | + - cargo test --all-features --target x86_64-unknown-linux-musl |
| 92 | + retry: |
| 93 | + automatic: false |
| 94 | + agents: |
| 95 | + platform: x86_64.metal |
| 96 | + plugins: |
| 97 | + - docker#v3.0.1: |
| 98 | + privileged: true |
| 99 | + image: "rustvmm/dev:v2" |
| 100 | + always-pull: true |
| 101 | + |
| 102 | + - label: "unittests-musl-arm" |
| 103 | + command: |
| 104 | + - cargo test --all-features --target aarch64-unknown-linux-musl |
| 105 | + retry: |
| 106 | + automatic: false |
| 107 | + agents: |
| 108 | + platform: arm.metal |
| 109 | + plugins: |
| 110 | + - docker#v3.0.1: |
| 111 | + privileged: true |
| 112 | + image: "rustvmm/dev:v2" |
| 113 | + always-pull: true |
| 114 | + |
| 115 | + - label: "clippy-x86" |
| 116 | + commands: |
| 117 | + - cargo clippy --all -- -D warnings |
| 118 | + retry: |
| 119 | + automatic: false |
| 120 | + agents: |
| 121 | + platform: x86_64.metal |
| 122 | + plugins: |
| 123 | + - docker#v3.0.1: |
| 124 | + image: "rustvmm/dev:v2" |
| 125 | + always-pull: true |
| 126 | + |
| 127 | + - label: "clippy-arm" |
| 128 | + commands: |
| 129 | + - cargo clippy --all -- -D warnings |
| 130 | + retry: |
| 131 | + automatic: false |
| 132 | + agents: |
| 133 | + platform: arm.metal |
| 134 | + plugins: |
| 135 | + - docker#v3.0.1: |
| 136 | + image: "rustvmm/dev:v2" |
| 137 | + always-pull: true |
| 138 | + |
| 139 | + - label: "check-warnings-x86" |
| 140 | + commands: |
| 141 | + - RUSTFLAGS="-D warnings" cargo check --all-targets |
| 142 | + retry: |
| 143 | + automatic: false |
| 144 | + agents: |
| 145 | + platform: x86_64.metal |
| 146 | + plugins: |
| 147 | + - docker#v3.0.1: |
| 148 | + privileged: true |
| 149 | + image: "rustvmm/dev:v2" |
| 150 | + always-pull: true |
| 151 | + |
| 152 | + - label: "check-warnings-arm" |
| 153 | + command: |
| 154 | + - RUSTFLAGS="-D warnings" cargo check --all-targets |
| 155 | + retry: |
| 156 | + automatic: false |
| 157 | + agents: |
| 158 | + platform: arm.metal |
| 159 | + plugins: |
| 160 | + - docker#v3.0.1: |
| 161 | + privileged: true |
| 162 | + image: "rustvmm/dev:v2" |
| 163 | + always-pull: true |
| 164 | + |
| 165 | + - label: "coverage-x86" |
| 166 | + commands: |
| 167 | + - pytest tests/test_coverage.py |
| 168 | + retry: |
| 169 | + automatic: false |
| 170 | + agents: |
| 171 | + platform: x86_64.metal |
| 172 | + plugins: |
| 173 | + - docker#v3.0.1: |
| 174 | + privileged: true |
| 175 | + image: "rustvmm/dev:v2" |
| 176 | + always-pull: true |
0 commit comments