Make desktop app workflow apt update before install of linux packages

- See if this fixes the issue with the workflows failing to install
system packages

- Make the build desktop app run on changes to the workflow file as well
This commit is contained in:
Debanjum Singh Solanky 2023-08-01 23:11:58 -07:00
parent 16c6bfce8e
commit e42fd8ae91
2 changed files with 3 additions and 2 deletions

View file

@ -8,6 +8,7 @@ on:
- src/khoj/**
- pyproject.toml
- Khoj.spec
- .github/workflows/build_desktop.yml
workflow_dispatch:
jobs:
@ -39,7 +40,7 @@ jobs:
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt install libegl1 libxcb-xinerama0 python3-tk -y
sudo apt update && sudo apt install libegl1 libxcb-xinerama0 python3-tk -y
fi
python -m pip install --upgrade pip
pip install pyinstaller

View file

@ -91,7 +91,7 @@ jobs:
shell: bash
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo apt install libegl1 libxcb-xinerama0 python3-tk -y
sudo apt update && sudo apt install libegl1 libxcb-xinerama0 python3-tk -y
fi
python -m pip install --upgrade pip
pip install pyinstaller