Skip to content

Commit

Permalink
Also build arm64 standalone package when releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
hakwerk committed Dec 14, 2024
1 parent e36101b commit 4508468
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,15 @@ jobs:

- name: APT Install
id: aptInstall
run: sudo apt-get -y install build-essential debhelper fakeroot
run: |
sudo dpkg --add-architecture arm64
sudo apt-get -y install build-essential debhelper fakeroot crossbuild-essential-arm64
- name: Build Debian package
- name: Build Debian packages
id: make_debian
run: |
make debian
make debian-arm64
- name: Create changelog text
id: changelog
Expand Down
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ endif
# Build
#########################################

LDFLAGS := -ldflags='-w -X "main.standaloneVersion=$(VERSION)"'
LDFLAGS := -ldflags='-w -X "main.standaloneVersion=$(VERSION)" -extldflags "-static"'

download:
$Q cd gui; \
Expand Down Expand Up @@ -71,9 +71,16 @@ debian: changelog
rm -f $$OUTPUT; \
dpkg-buildpackage -b -rfakeroot -us -uc && cp $$OUTPUT $(RELEASE)/

debian-arm64: changelog
$Q mkdir -p $(RELEASE); \
OUTPUT=../labca-gui*.deb; \
rm -f $$OUTPUT; \
GOOS_OVERRIDE="GOARCH=arm64" \
dpkg-buildpackage -b -rfakeroot -us -uc --host-arch arm64 && cp $$OUTPUT $(RELEASE)/

distclean: clean

.PHONY: changelog debian distclean
.PHONY: changelog debian debian-arm64 distclean

#########################################
# Clean
Expand Down

0 comments on commit 4508468

Please sign in to comment.