Skip to content

Fix make build_release #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
# Build settings
TYK_VERSION ?= v5.8.0
# Options: linux, darwin
TARGET_OS ?= darwin
TARGET_OS ?= $(shell go env GOOS)
# Options: amd64, arm64
TARGET_ARCH ?= arm64
TARGET_ARCH ?= $(shell go env GOARCH)

# Version for https://github.com/kelindar/search.git
SEARCH_VERSION := v0.4.0
Expand All @@ -16,7 +16,7 @@ SEARCH_LIB ?= libllama_go.dylib
PLUGIN_NAME := agent-bridge-plugin
FULL_PLUGIN_NAME := $(PLUGIN_NAME)_$(TYK_VERSION)_$(TARGET_OS)_$(TARGET_ARCH)
TYK_COMPILER_IMAGE_PLATFORM := linux/amd64
TYK_COMPILER_IMAGE := tykio/tyk-plugin-compiler:v$(TYK_VERSION)
TYK_COMPILER_IMAGE := tykio/tyk-plugin-compiler:$(TYK_VERSION)

PROJECT_ROOT := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
REQUIRED_BINS := docker go git curl jq cmake
Expand All @@ -41,7 +41,7 @@ build_release:
docker run --rm \
--platform=$(TYK_COMPILER_IMAGE_PLATFORM) \
--mount type=bind,src=./plugins,dst=/plugin-source \
$(TYK_COMPILER_IMAGE) $(PLUGIN_NAME) _$$(date +%s) $(TARGET_OS) $(TARGET_ARCH)
$(TYK_COMPILER_IMAGE) $(PLUGIN_NAME) _$$(date +%s)

test: search-release-$(SEARCH_VERSION)/build/lib/$(SEARCH_LIB)
$(LIB_ENV_VAR)=$(PROJECT_ROOT)/search-release-$(SEARCH_VERSION)/build/lib go test -v ./plugins
Expand Down
39 changes: 0 additions & 39 deletions api-bridge-agnt.acp.json

This file was deleted.

Loading