-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fetch precompiled xk6 extension from
grafana/xk6-sm
(#966)
* Dockerfiles: ADD sm-k6 from grafana/xk6-sm releases * renovate: upgrade grafana/xk6-sm releases URLs * make: add target to pull sm-k6 from grafana/xk6-sm repo * renovate: update xk6-sm version in makefile * scripts/package: source sm-k6 binary from current path * xk6: remove source tree and make targets * ci: call `make sm-k6` for workflows that need a k6 binary * prober/multihttp: use k6 binary from dest repo for `make sm-k6`
- Loading branch information
Showing
14 changed files
with
42 additions
and
1,555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
XK6_PLATFORMS := $(filter-out linux/arm,$(PLATFORMS)) darwin/arm64 darwin/amd64 | ||
|
||
.PHONY: sm-k6 | ||
sm-k6: | ||
@true | ||
|
||
define sm-k6 | ||
$(DISTDIR)/$(1)-$(2)/sm-k6: | ||
mkdir -p "$(DISTDIR)/$(1)-$(2)" | ||
# Renovate updates the following line. Keep its syntax as it is. | ||
curl -sSL https://github.com/grafana/xk6-sm/releases/download/v0.0.3/sm-k6-$(1)-$(2) -o "$$@" | ||
chmod +x "$$@" | ||
|
||
sm-k6: $(DISTDIR)/$(1)-$(2)/sm-k6 | ||
endef | ||
|
||
$(foreach BUILD_PLATFORM,$(XK6_PLATFORMS), \ | ||
$(eval $(call sm-k6,$(word 1,$(subst /, ,$(BUILD_PLATFORM))),$(word 2,$(subst /, ,$(BUILD_PLATFORM)))))) | ||
|
||
.PHONY: sm-k6-native | ||
sm-k6-native: $(DISTDIR)/$(HOST_OS)-$(HOST_ARCH)/sm-k6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.