| # Copyright 2021 The IREE Authors |
| # |
| # Licensed under the Apache License v2.0 with LLVM Exceptions. |
| # See https://llvm.org/LICENSE.txt for license information. |
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| |
| steps: |
| - label: "Test Colab notebooks" |
| commands: |
| - "docker run --user=$(id -u):$(id -g) --volume=\\$PWD:\\$IREE_DOCKER_WORKDIR --workdir=\\$IREE_DOCKER_WORKDIR --rm gcr.io/iree-oss/samples@sha256:2ee255805160dcd04a851c53a3cf6275c616e47b6fe74a025d3115d5e6ab180e python3 ./samples/colab/test_notebooks.py" |
| env: |
| IREE_DOCKER_WORKDIR: "/usr/src/github/iree" |
| agents: |
| - "queue=build" |
| |
| - label: "Test Samples" |
| commands: |
| - "docker run --user=$(id -u):$(id -g) --volume=\\$PWD:\\$IREE_DOCKER_WORKDIR --workdir=\\$IREE_DOCKER_WORKDIR --rm gcr.io/iree-oss/samples@sha256:2ee255805160dcd04a851c53a3cf6275c616e47b6fe74a025d3115d5e6ab180e ./build_tools/testing/test_samples.sh" |
| env: |
| IREE_DOCKER_WORKDIR: "/usr/src/github/iree" |
| agents: |
| - "queue=build" |
| |
| # A host tools install is required for the WebAssembly build. |
| # We _could_ instead download from the latest GitHub release, but all of our |
| # releases are marked as "draft"s, so the convenient |
| # https://github.com/google/iree/releases/latest does not actually work :/ |
| - label: ":linux: Build host install" |
| key: "build-host-install" |
| commands: |
| - "git submodule sync && git submodule update --init --jobs 8 --depth 1" |
| - "docker run --user=$(id -u):$(id -g) --volume=\\$PWD:\\$IREE_DOCKER_WORKDIR --workdir=\\$IREE_DOCKER_WORKDIR --rm gcr.io/iree-oss/base@sha256:32a501b23abeae69eb33e5e78295312f5df28bacabc799dffe218764a66ed28e ./build_tools/cmake/build_host_install.sh" |
| - "tar -czvf build-artifacts.tgz build-host/install" |
| artifact_paths: "build-artifacts.tgz" |
| env: |
| IREE_DOCKER_WORKDIR: "/usr/src/github/iree" |
| agents: |
| - "queue=build" |
| |
| - label: ":webassembly: Build experimental web samples" |
| depends_on: "build-host-install" |
| commands: |
| - "buildkite-agent artifact download --step build-host-install build-artifacts.tgz ./" |
| - "tar xzf build-artifacts.tgz" |
| - "git submodule update --init --jobs 8 --depth 1" |
| - "docker run --user=$(id -u):$(id -g) --volume=\\$PWD:\\$IREE_DOCKER_WORKDIR --workdir=\\$IREE_DOCKER_WORKDIR --rm gcr.io/iree-oss/emscripten@sha256:f1dff051cc6a131d64065e1bc7b610e054e51d0820951efd2724c026a8addc21 ./experimental/web/test_samples.sh" |
| env: |
| IREE_DOCKER_WORKDIR: "/usr/src/github/iree" |
| agents: |
| - "queue=build" |
| |
| # Notify rotation on postsubmit failures. |
| notify: |
| - email: "bdi-build-cop+buildkite@grotations.appspotmail.com" |
| if: "build.state == 'failed' && build.pull_request.id == null" |