Skip to content

Commit 2654cf2

Browse files
authored
chore: remove unused targets from the makefile (#1496)
We now bump the version by editing the workspace `Cargo.toml`. The README will be fixed in a separate patch.
1 parent ee2e621 commit 2654cf2

File tree

1 file changed

+2
-33
lines changed

1 file changed

+2
-33
lines changed

Makefile

+2-33
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
SHELL=/usr/bin/env bash
22

3-
# How much to "bump" the version by on release.
4-
BUMP ?= patch
5-
VERSION ?= $(error VERSION environment variable must be set)
6-
73
# Run cargo fmt
84
rustfmt:
95
cargo fmt --all --check
@@ -20,21 +16,6 @@ check:
2016
test:
2117
cargo test --workspace
2218

23-
# Release a new version. Specify the version "bump" with BUMP
24-
bump-version: check-clean deps-release check
25-
cargo set-version --workspace --bump $(BUMP)
26-
cargo update --workspace
27-
@echo "Bumped actors to version $$($(MAKE) --quiet version)"
28-
29-
set-version: check-clean deps-release check
30-
cargo set-version --workspace $(VERSION)
31-
cargo update --workspace
32-
@echo "Set actors to version $(VERSION)"
33-
34-
# Publish the current version to crates.io
35-
publish:
36-
cargo workspaces publish --from-git
37-
3819
# Create a bundle in a deterministic location
3920
bundle:
4021
cargo run -- -o output/builtin-actors.car
@@ -61,24 +42,12 @@ bundle-testing:
6142
BUILD_FIL_NETWORK=testing cargo run -- -o output/builtin-actors-testing.car
6243
BUILD_FIL_NETWORK=testing-fake-proofs cargo run -- -o output/builtin-actors-testing-fake-proofs.car
6344

64-
.PHONY: all-bundles bundle-mainnet bundle-caterpillarnet bundle-butterflynet bundle-calibrationnet bundle-devnet bundle-testing
65-
6645
# Check if the working tree is clean.
6746
check-clean:
6847
@git diff --quiet || { \
6948
echo "Working tree dirty, please commit any changes first."; \
7049
exit 1; \
7150
}
7251

73-
# Check if we have the required deps.
74-
deps-release:
75-
@which cargo-set-version >/dev/null 2>&1 || { \
76-
echo "Please install cargo-edit: 'cargo install cargo-edit'."; \
77-
exit 1; \
78-
}
79-
@which cargo-workspaces >/dev/null 2>&1 || { \
80-
echo "Please install cargo-workspaces: 'cargo install cargo-workspaces'."; \
81-
exit 1; \
82-
}
83-
84-
.PHONY: check check-clean deps deps-release deps-release test publish bump-version set-version bundle
52+
.PHONY: rustfmt check check-clean test bundle
53+
.PHONY: all-bundles bundle-mainnet bundle-caterpillarnet bundle-butterflynet bundle-calibrationnet bundle-devnet bundle-testing

0 commit comments

Comments
 (0)