Skip to content

Commit 94b4a04

Browse files
authored
Update GitHub Actions workflows. (#817)
This PR was automatically generated by the update-workflows-ecosystem-providers workflow in the pulumi/ci-mgmt repo, from commit 9575e75e5316d699a77abf48a351abe840e1bed5.
1 parent f6dc904 commit 94b4a04

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

Makefile

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,10 @@ LDFLAGS=$(LDFLAGS_PROJ_VERSION) $(LDFLAGS_UPSTREAM_VERSION) $(LDFLAGS_EXTRAS) $(
3939
# Ensure all directories exist before evaluating targets to avoid issues with `touch` creating directories.
4040
_ := $(shell mkdir -p .make bin .pulumi/bin)
4141

42-
# Installs all necessary tools with mise and records completion in a sentinel
43-
# file so dependent targets can participate in make's caching behaviour. The
44-
# environment is refreshed via an order-only prerequisite so it still runs on
45-
# every invocation without invalidating the sentinel.
46-
mise_install: .make/mise_install | mise_env
47-
48-
.PHONY: mise_env
49-
mise_env:
50-
@mise env -q > /dev/null
51-
52-
.make/mise_install:
53-
@mise install -q
54-
@touch $@
55-
5642
# Build the provider and all SDKs and install ready for testing
5743
build: .make/mise_install provider build_sdks install_sdks build_registry_docs
5844
build: | mise_env
45+
5946
# Keep aliases for old targets to ensure backwards compatibility
6047
development: build
6148
only_build: build
@@ -70,6 +57,20 @@ build_sdks: build_nodejs build_python build_dotnet build_go build_java build_reg
7057
install_sdks: install_nodejs_sdk install_python_sdk install_dotnet_sdk install_go_sdk install_java_sdk
7158
.PHONY: development only_build build generate generate_sdks build_sdks install_sdks mise_install mise_env
7259

60+
# Installs all necessary tools with mise and records completion in a sentinel
61+
# file so dependent targets can participate in make's caching behaviour. The
62+
# environment is refreshed via an order-only prerequisite so it still runs on
63+
# every invocation without invalidating the sentinel.
64+
mise_install: .make/mise_install | mise_env
65+
66+
mise_env:
67+
@mise env -q > /dev/null
68+
69+
.make/mise_install:
70+
@mise install -q
71+
@touch $@
72+
73+
7374
help:
7475
@echo "Usage: make [target]"
7576
@echo ""

0 commit comments

Comments
 (0)