Add sudo when running installations in order to install relevant packages

add --legacy-peer-deps temporarily to see if it helps mitigate the issue
This commit is contained in:
sabaimran 2024-12-08 11:11:13 -08:00
parent 4c4b7120c6
commit 6940c6379b

View file

@ -76,12 +76,12 @@ jobs:
DEBIAN_FRONTEND: noninteractive DEBIAN_FRONTEND: noninteractive
run: | run: |
# install postgres and other dependencies # install postgres and other dependencies
apt update && apt install -y git python3-pip libegl1 sqlite3 libsqlite3-dev libsqlite3-0 ffmpeg libsm6 libxext6 sudo apt update && sudo apt install -y git python3-pip libegl1 sqlite3 libsqlite3-dev libsqlite3-0 ffmpeg libsm6 libxext6
apt install -y postgresql postgresql-client && apt install -y postgresql-server-dev-14 sudo apt install -y postgresql postgresql-client && sudo apt install -y postgresql-server-dev-14
# upgrade pip # upgrade pip
python -m ensurepip --upgrade && python -m pip install --upgrade pip python -m ensurepip --upgrade && python -m pip install --upgrade pip
# install terrarium for code sandbox # install terrarium for code sandbox
git clone https://github.com/khoj-ai/terrarium.git && cd terrarium && npm install && mkdir pyodide_cache git clone https://github.com/khoj-ai/terrarium.git && cd terrarium && npm install --legacy-peer-deps && mkdir pyodide_cache
- name: ⬇️ Install Application - name: ⬇️ Install Application
run: | run: |