Skip to content

Commit

Permalink
build.yml: Fix Arch Linux ARM armv7 and aarch64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
MarksonHon committed Jul 14, 2023
1 parent 94e31b5 commit 37a6d0f
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' \
Expand Down

0 comments on commit 37a6d0f

Please sign in to comment.