Skip to content
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

Build Topograph for ARM #22

Merged
merged 1 commit into from
Oct 31, 2024
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
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ build: proto
$(CMD_DIR)/$${target}; \
done

.PHONY: build-arm64
build-arm64: proto
@echo "Building for arm64"
@for target in $(TARGETS); do \
echo "Building $${target}"; \
GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc CGO_ENABLED=1 go build -a -o $(OUTPUT_DIR)/$${target} \
-ldflags '-extldflags "-static" -X main.GitTag=$(GIT_REF)' \
$(CMD_DIR)/$${target}; \
done


.PHONY: clean
clean:
scripts/clean-build.sh
Expand Down Expand Up @@ -88,6 +99,10 @@ ssl:
deb: build
scripts/build-deb.sh $(GIT_REF)

.PHONY: deb-arm64
deb-arm64: build-arm64
ARCH=arm64 scripts/build-deb-arm64.sh $(GIT_REF)

.PHONY: rpm
rpm: build
scripts/build-rpm.sh $(GIT_REF)
Loading
Loading