Skip to content
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
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ jobs:
# Linux arm64
GOOS=linux GOARCH=arm64 go build -ldflags "${LDFLAGS}" -o roxie-linux-arm64 ./cmd

# Linux s390x
GOOS=linux GOARCH=s390x go build -ldflags "${LDFLAGS}" -o roxie-linux-s390x ./cmd

# macOS amd64
GOOS=darwin GOARCH=amd64 go build -ldflags "${LDFLAGS}" -o roxie-darwin-amd64 ./cmd

Expand All @@ -62,6 +65,7 @@ jobs:
files: |
roxie-linux-amd64
roxie-linux-arm64
roxie-linux-s390x
roxie-darwin-amd64
roxie-darwin-arm64
checksums.txt
14 changes: 6 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ BUILD_DIR := .
BINARY := $(BUILD_DIR)/$(BINARY_NAME)
INSTALLED_BINARY := $(GOPATH)/bin/$(BINARY_NAME)

# Platforms supported by build-<os>-<arch>.
SUPPORTED_PLATFORMS := linux-amd64 linux-arm64 linux-s390x darwin-amd64 darwin-arm64

# Convention is that the git tags are of the form
# v<major>.<minor>.<patch>-<build-number>-<commit-hash>[-dirty]
# or v<major>.<minor>.<patch>
Expand Down Expand Up @@ -52,14 +55,9 @@ build-%: ## Build the roxie binary for a specific OS/ARCH (e.g., build-linux-amd
@$(eval PARTS := $(subst -, ,$*))
@$(eval TARGET_OS := $(word 1,$(PARTS)))
@$(eval TARGET_ARCH := $(word 2,$(PARTS)))
@if ! echo "linux darwin" | grep -qw "$(TARGET_OS)"; then \
echo "❌ Unsupported OS: $(TARGET_OS)"; \
echo "Supported: linux, darwin"; \
exit 1; \
fi
@if ! echo "amd64 arm64" | grep -qw "$(TARGET_ARCH)"; then \
echo "❌ Unsupported ARCH: $(TARGET_ARCH)"; \
echo "Supported: amd64, arm64"; \
@if [ -z "$(filter $*,$(SUPPORTED_PLATFORMS))" ]; then \
echo "❌ Unsupported platform: $*"; \
echo "Supported: $(SUPPORTED_PLATFORMS)"; \
exit 1; \
fi
@echo "🔨 Building roxie for $(TARGET_OS)/$(TARGET_ARCH)..."
Expand Down
Loading