blob: dc941ba2529ae6c546e5e221fa3ca19ea23ad57f [file] [log] [blame]
# Copyright 2022 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: ":hammer_and_wrench: Build the runtime only"
agents:
queue: "cpu"
security: "untrusted"
env:
IREE_DOCKER_WORKDIR: "/usr/src/github/iree"
BUILD_DIR: "build-runtime-${BUILDKITE_BUILD_ID}"
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:9d742e01507c292def852cbfebfae71412cff94df0ab2619f61f9a5a2a98f651 \
./build_tools/cmake/build_runtime.sh \
"$${BUILD_DIR}"
tar -czf "$${BUILD_DIR}.tgz" "$${BUILD_DIR}"
buildkite-agent artifact upload "$${BUILD_DIR}.tgz"