| # Copyright 2020 Google LLC |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # https://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| steps: |
| - label: "build" |
| commands: |
| - "docker run --user=$(id -u):$(id -g) --volume=\\$PWD:\\$IREE_DOCKER_WORKDIR --workdir=\\$IREE_DOCKER_WORKDIR --rm gcr.io/iree-oss/cmake-android@sha256:15d3266ae4865f7642a4ef4d76e5181f0dc3482a7cfba9021b6b55be524208ec build_tools/kokoro/gcp_ubuntu/cmake/android/build.sh arm64-v8a" |
| - "tar --exclude='*.o' --exclude='*.a' -czvf build-artifacts.tgz build-android" |
| agents: |
| - "build=true" |
| env: |
| IREE_DOCKER_WORKDIR: "/usr/src/github/iree" |
| artifact_paths: "build-artifacts.tgz" |
| |
| - wait |
| |
| - label: "test on Galaxy S20 (exynos-990, mali-g77)" |
| commands: |
| - "buildkite-agent artifact download --step build build-artifacts.tgz ./" |
| - "tar xzf build-artifacts.tgz" |
| - "find build-android/ -name '*.cmake' -exec sed -i \"s!\\$IREE_DOCKER_WORKDIR/!\\$PWD/!g\" {} \\;" |
| - "cd build-android/" |
| - "ctest --output-on-failure" |
| agents: |
| - "android-soc=exynos-990" |
| - "queue=test-android" |
| env: |
| IREE_DOCKER_WORKDIR: "/usr/src/github/iree" |
| timeout_in_minutes: "15" |
| |
| - label: "test on Galaxy S10 (exynos-9820, mali-g76)" |
| skip: "Currently offline" |
| commands: |
| - "buildkite-agent artifact download --step build build-artifacts.tgz ./" |
| - "tar xzf build-artifacts.tgz" |
| - "find build-android/ -name '*.cmake' -exec sed -i \"s!\\$IREE_DOCKER_WORKDIR/!\\$PWD/!g\" {} \\;" |
| - "cd build-android/" |
| - "ctest --output-on-failure" |
| agents: |
| - "android-soc=exynos-9820" |
| - "queue=test-android" |
| env: |
| IREE_DOCKER_WORKDIR: "/usr/src/github/iree" |
| timeout_in_minutes: "15" |
| |
| - label: "test on Pixel 4 (snapdragon-855, adreno-640)" |
| commands: |
| - "buildkite-agent artifact download --step build build-artifacts.tgz ./" |
| - "tar xzf build-artifacts.tgz" |
| - "find build-android/ -name '*.cmake' -exec sed -i \"s!\\$IREE_DOCKER_WORKDIR/!\\$PWD/!g\" {} \\;" |
| - "cd build-android/" |
| # vulkan tests using khr_shader_float16_int8 are failing on pixel4. |
| # Disabling it until we identify the root cause. |
| - "ctest --output-on-failure --label-exclude \"^vulkan_uses_vk_khr_shader_float16_int8\\$\"" |
| agents: |
| - "android-soc=snapdragon-855" |
| - "queue=test-android" |
| env: |
| IREE_DOCKER_WORKDIR: "/usr/src/github/iree" |
| timeout_in_minutes: "15" |
| |
| notify: |
| - email: "bdi-build-cop+buildkite@grotations.appspotmail.com" |
| if: build.state == "failed" |