From e42fd8ae913ab70d579430718d75b551d4037364 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Tue, 1 Aug 2023 23:11:58 -0700 Subject: [PATCH] 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 --- .github/workflows/build_desktop.yml | 3 ++- .github/workflows/release.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_desktop.yml b/.github/workflows/build_desktop.yml index 8fc6b22c..81784fe5 100644 --- a/.github/workflows/build_desktop.yml +++ b/.github/workflows/build_desktop.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd4625fd..641c280e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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