-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (38 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Makefile provides an API for CI related tasks
# Using the makefile is not required however CI
# uses the specific targets within the file.
# Therefore may be useful in ensuring a change
# is ready to pass CI checks.
.PHONY: all
all: build check-fmt check-clippy test
.PHONY: build
build:
# Build with default features
RUSTFLAGS="-D warnings" cargo build
# Build with all features
RUSTFLAGS="-D warnings" cargo build --all-features
.PHONY: test
test:
# Test with default features
cargo test
# Test with all features
cargo test --all-features
.PHONY: check-fmt
check-fmt:
cargo fmt --all -- --check
.PHONY: check-clippy
check-clippy:
# Check with default features
cargo clippy --workspace --all-targets -- -D warnings
# Check with all features
cargo clippy --workspace --all-targets --all-features -- -D warnings
# Prepare a release PR.
.PHONY: release-pr
release-pr:
./scripts/release_pr.sh
# Publish any unpublished releases.
# A release PR must first be merged before this target
# will have any effect.
.PHONY: release
release:
./scripts/release.sh