1
1
SHELL =/usr/bin/env bash
2
2
3
- # How much to "bump" the version by on release.
4
- BUMP ?= patch
5
- VERSION ?= $(error VERSION environment variable must be set)
6
-
7
3
# Run cargo fmt
8
4
rustfmt :
9
5
cargo fmt --all --check
@@ -20,21 +16,6 @@ check:
20
16
test :
21
17
cargo test --workspace
22
18
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
-
38
19
# Create a bundle in a deterministic location
39
20
bundle :
40
21
cargo run -- -o output/builtin-actors.car
@@ -61,24 +42,12 @@ bundle-testing:
61
42
BUILD_FIL_NETWORK=testing cargo run -- -o output/builtin-actors-testing.car
62
43
BUILD_FIL_NETWORK=testing-fake-proofs cargo run -- -o output/builtin-actors-testing-fake-proofs.car
63
44
64
- .PHONY : all-bundles bundle-mainnet bundle-caterpillarnet bundle-butterflynet bundle-calibrationnet bundle-devnet bundle-testing
65
-
66
45
# Check if the working tree is clean.
67
46
check-clean :
68
47
@git diff --quiet || { \
69
48
echo " Working tree dirty, please commit any changes first." ; \
70
49
exit 1; \
71
50
}
72
51
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