Skip to content

Commit

Permalink
fixup! build: use sudo while running apt on linux
Browse files Browse the repository at this point in the history
Signed-off-by: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
RaisinTen committed Sep 20, 2022
1 parent 01979c0 commit cbfc064
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build/deps.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@ EXECUTOR ?= $(OS)
.PHONY: install-deps
install-deps:
# this assumes the linux executor on CircleCI runs ubuntu/debian
ifneq (,$(filter $(EXECUTOR),debian linux))
ifneq (,$(filter $(EXECUTOR),debian))
apt-get update
apt-get install --no-install-recommends -y \
build-essential ninja-build cmake \
python3 python3-dev python3-setuptools
endif
ifneq (,$(filter $(EXECUTOR),linux))
sudo apt-get update
sudo apt-get install --no-install-recommends -y \
build-essential ninja-build cmake \
python3 python3-dev python3-setuptools
endif
ifeq ($(EXECUTOR), alpine)
apk update
apk add --no-cache \
Expand All @@ -18,4 +24,4 @@ ifeq ($(EXECUTOR), alpine)
endif
ifeq ($(EXECUTOR), macos)
brew install cmake
endif
endif

0 comments on commit cbfc064

Please sign in to comment.