blob: 511dfd737889c31ae5d3cf31ec2f45613cd75d8b [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:5d43683c6b50aebe1fca6c85f2012f3b0fa153bf4dd268e8767b619b1891423a \
./build_tools/cmake/build_runtime.sh \
"$${BUILD_DIR}"
tar -czf "$${BUILD_DIR}.tgz" "$${BUILD_DIR}"
buildkite-agent artifact upload "$${BUILD_DIR}.tgz"