-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build.yml: Fix Arch Linux ARM armv7 and aarch64 build
- Loading branch information
1 parent
94e31b5
commit 37a6d0f
Showing
1 changed file
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -196,12 +196,30 @@ jobs: | |
sudo apt install -y libarchive-tools rpm | ||
sudo gem install fpm -v 1.15.1 | ||
pushd bundled || exit 1 | ||
if [ "$GOARCH" == 'arm' ] && [ "$GOARM" == '7' ];then | ||
package_arch='armhf' | ||
else | ||
package_arch="$GOARCH" | ||
fi | ||
for package_manager in deb rpm pacman; do | ||
if [ "$package_manager" == 'pacman' ];then | ||
if [ "$GOARCH" == 'arm' ] && [ "$GOARM" == '7' ];then | ||
package_arch='arm7hf' | ||
elif [ "$GOARCH" == 'arm64' ];then | ||
package_arch='aarch64' | ||
else | ||
package_arch="$GOARCH" | ||
fi | ||
elif [ "$package_manager" == 'rpm' ];then | ||
if [ "$GOARCH" == 'arm' ] && [ "$GOARM" == '7' ];then | ||
package_arch='armhfp' | ||
elif [ "$GOARCH" == 'arm64' ];then | ||
package_arch='aarch64' | ||
else | ||
package_arch="$GOARCH" | ||
fi | ||
elif [ "$package_manager" == 'deb' ];then | ||
if [ "$GOARCH" == 'arm' ] && [ "$GOARM" == '7' ];then | ||
package_arch='armhf' | ||
else | ||
package_arch="$GOARCH" | ||
fi | ||
fi | ||
fpm -s dir -t "$package_manager" -a $package_arch --version "$PACKAGE_VERSION" \ | ||
--url 'https://github.com/daeuniverse/daed' --description "daed, A Modern Dashboard For dae." \ | ||
--maintainer "[email protected]" --name daed --license 'MIT AGPL' \ | ||
|