Also build arm64 standalone package when releasing

This commit is contained in:
Arjan H
2024-12-14 14:43:04 +01:00
parent e36101b3aa
commit 4508468a6a
2 changed files with 14 additions and 4 deletions

View File

@@ -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

View File

@@ -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; \
@@ -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