mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-16 23:17:42 +00:00
This auto-detects the repo by default (instead of having to specify KATA_DEV_MODE=true) so that forked repos can leverage the static-checks.yaml CI check without modification. An alternative would have been to pass the repo in static-checks.yaml. However, because of the matrix, this would've changed the check name, which is a pain to handle in either the gatekeeper/GH UI. Example fork failure: https://github.com/microsoft/kata-containers/actions/runs/16656407213/job/47142421739#step:8:75 I've tested this change to work in a fork. Signed-off-by: Aurélien Bombo <abombo@microsoft.com>
60 lines
1.2 KiB
Makefile
60 lines
1.2 KiB
Makefile
# Copyright (c) 2020-2023 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
# List of available components
|
|
COMPONENTS =
|
|
|
|
COMPONENTS += libs
|
|
COMPONENTS += agent
|
|
COMPONENTS += dragonball
|
|
COMPONENTS += runtime
|
|
COMPONENTS += runtime-rs
|
|
|
|
# List of available tools
|
|
TOOLS =
|
|
|
|
TOOLS += agent-ctl
|
|
TOOLS += kata-ctl
|
|
TOOLS += log-parser
|
|
TOOLS += runk
|
|
TOOLS += trace-forwarder
|
|
|
|
STANDARD_TARGETS = build check clean install static-checks-build test vendor
|
|
|
|
# Variables for the build-and-publish-kata-debug target
|
|
KATA_DEBUG_REGISTRY ?= ""
|
|
KATA_DEBUG_TAG ?= ""
|
|
|
|
default: all
|
|
|
|
include utils.mk
|
|
include ./tools/packaging/kata-deploy/local-build/Makefile
|
|
|
|
# Create the rules
|
|
$(eval $(call create_all_rules,$(COMPONENTS),$(TOOLS),$(STANDARD_TARGETS)))
|
|
|
|
# Non-standard rules
|
|
|
|
generate-protocols:
|
|
make -C src/agent generate-protocols
|
|
|
|
# Some static checks rely on generated source files of components.
|
|
static-checks: static-checks-build
|
|
bash tests/static-checks.sh
|
|
|
|
docs-url-alive-check:
|
|
bash ci/docs-url-alive-check.sh
|
|
|
|
build-and-publish-kata-debug:
|
|
bash tools/packaging/kata-debug/kata-debug-build-and-upload-payload.sh ${KATA_DEBUG_REGISTRY} ${KATA_DEBUG_TAG}
|
|
|
|
.PHONY: \
|
|
all \
|
|
kata-tarball \
|
|
install-tarball \
|
|
default \
|
|
static-checks \
|
|
docs-url-alive-check
|