Skip to content

Commit

Permalink
Use sudo for sbuild on arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
furushchev committed Feb 11, 2025
1 parent fefa510 commit 86a7929
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,9 @@ function build_pkg {
fi
if [ -n "$opts" ]; then opts="$EXTRA_SBUILD_OPTS $opts"; fi

# The `sg` command without `sudo` does not work on Ubuntu Arm64 environment in Github Actions.
SBUILD_OPTS="--verbose --chroot=sbuild --no-clean-source --no-run-lintian --dist=$DEB_DISTRO $opts"
ici_label "${SBUILD_QUIET[@]}" sg sbuild -c "sbuild $SBUILD_OPTS" || return 4
ici_label "${SBUILD_QUIET[@]}" sudo -E -H -u $USER sbuild $SBUILD_OPTS || return 4

"${CCACHE_QUIET[@]}" ici_label ccache -sv || return 1
BUILT_PACKAGES+=("$(deb_pkg_name "$pkg_name"): $version_link")
Expand Down

0 comments on commit 86a7929

Please sign in to comment.