mirror of https://github.com/OpenIPC/firmware.git
Better use sudo externally
parent
ef73c4335c
commit
e3c7c66b96
|
@ -82,7 +82,7 @@ jobs:
|
|||
- name: Install build dependencies
|
||||
if: env.NEED == 'true'
|
||||
run: |
|
||||
make install-deps
|
||||
sudo make install-deps
|
||||
if [ ! -z "$ACT" ]; then
|
||||
echo "FORCE_UNSAFE_CONFIGURE=1" >> $GITHUB_ENV
|
||||
else
|
||||
|
@ -284,7 +284,7 @@ jobs:
|
|||
|
||||
- name: Install build dependencies
|
||||
run: |
|
||||
make install-deps
|
||||
sudo make install-deps
|
||||
ls -l deps || true
|
||||
if [ ! -z "$ACT" ]; then
|
||||
echo "FORCE_UNSAFE_CONFIGURE=1" >> $GITHUB_ENV
|
||||
|
|
12
Makefile
12
Makefile
|
@ -56,10 +56,14 @@ $(BR_DIR): $(ROOT_DIR)/buildroot-$(BR_VER).tar.gz
|
|||
|
||||
|
||||
install-deps:
|
||||
if [ ! -f /.dockerenv ]; then SUDO=sudo; fi
|
||||
DEBIAN_FRONTEND=noninteractive $(SUDO) apt-get update && \
|
||||
$(SUDO) apt-get -y install \
|
||||
build-essential git make libncurses-dev wget curl cpio rsync bc unzip
|
||||
ifneq ($(shell id -u), 0)
|
||||
@echo "You must be root to perform this action."
|
||||
else
|
||||
DEBIAN_FRONTEND=noninteractive apt-get update && \
|
||||
apt-get -y install \
|
||||
build-essential git make libncurses-dev wget curl \
|
||||
cpio rsync bc unzip file
|
||||
endif
|
||||
|
||||
|
||||
%_info:
|
||||
|
|
Loading…
Reference in New Issue