Skip to content

Commit

Permalink
chore(devtool): run cmd_build in privileged container
Browse files Browse the repository at this point in the history
This is needed for CI to install previous version of the
toolchain used on the main branch. This change will need
to be reverted after this PR is merged.

Signed-off-by: Egor Lazarchuk <[email protected]>
  • Loading branch information
ShadowCurse committed Nov 28, 2024
1 parent dd1383d commit 3fb90d6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/devtool
Original file line number Diff line number Diff line change
Expand Up @@ -510,13 +510,18 @@ cmd_build() {
# We don't need any special privileges for the build phase, so we run the
# container as the current user/group.
run_devctr \
--privileged \
--user "$(id -u):$(id -g)" \
--workdir "$workdir" \
${extra_args} \
-- \
./tools/release.sh --libc $libc --profile $profile
ret=$?

# Running as root would have created some root-owned files under the build
# dir. Let's fix that.
cmd_fix_perms

if [ ! -z "$revision" ]; then
popd
git branch -D $branch_name
Expand Down

0 comments on commit 3fb90d6

Please sign in to comment.