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/** - src/khoj/**
- pyproject.toml - pyproject.toml
- Khoj.spec - Khoj.spec
- .github/workflows/build_desktop.yml
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@ -39,7 +40,7 @@ jobs:
shell: bash shell: bash
run: | run: |
if [ "$RUNNER_OS" == "Linux" ]; then 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 fi
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install pyinstaller pip install pyinstaller

View file

@ -91,7 +91,7 @@ jobs:
shell: bash shell: bash
run: | run: |
if [ "$RUNNER_OS" == "Linux" ]; then 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 fi
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install pyinstaller pip install pyinstaller