mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 04:04:45 +00:00
dragonball: add Makefile.
Currently supported: build, clippy, check, format, test, clean Fixes: #4257 Signed-off-by: wllenyj <wllenyj@linux.alibaba.com>
This commit is contained in:
parent
a1df6d0969
commit
71f24d8271
29
src/dragonball/Makefile
Normal file
29
src/dragonball/Makefile
Normal file
@ -0,0 +1,29 @@
|
||||
# Copyright (c) 2019-2022 Alibaba Cloud. All rights reserved.
|
||||
# Copyright (c) 2019-2022 Ant Group. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
default: build
|
||||
|
||||
build:
|
||||
# FIXME: This line will be removed when we solve the vm-memory dependency problem in Dragonball Sandbox
|
||||
cargo update -p vm-memory:0.8.0 --precise 0.7.0
|
||||
cargo build --all-features
|
||||
|
||||
check: clippy format
|
||||
|
||||
clippy:
|
||||
@echo "INFO: cargo clippy..."
|
||||
cargo clippy --all-targets --all-features \
|
||||
-- \
|
||||
-D warnings
|
||||
|
||||
format:
|
||||
@echo "INFO: cargo fmt..."
|
||||
cargo fmt -- --check
|
||||
|
||||
clean:
|
||||
cargo clean
|
||||
|
||||
test:
|
||||
@echo "INFO: testing dragonball for development build"
|
||||
cargo test --all-features -- --nocapture
|
Loading…
Reference in New Issue
Block a user