diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 5ced24730..76615b2c9 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -1,10 +1,7 @@ Before implementing any code changes or responding to a request, run the -following four commands: +following command: -sudo apt-get install -y --fix-missing libgl1-mesa-dev libxi-dev libxrandr-dev libxinerama-dev ca-certificates libxcursor-dev libxcb-xkb-dev libdbus-1-dev libxkbcommon-dev libharfbuzz-dev libx11-xcb-dev zsh libpng-dev liblcms2-dev libfontconfig-dev libxkbcommon-x11-dev libcanberra-dev libxxhash-dev uuid-dev libsimde-dev libsystemd-dev libcairo2-dev zsh bash dash systemd-coredump gdb -sudo chmod -R og-w /usr/share/zsh -curl -fsSL https://download.calibre-ebook.com/ci/fonts.tar.xz | tar -xzf - -C ~/.local/share/fonts -./dev.sh build +python3 .github/workflows/ci.py build This will download needed dependencies, then create all generated files and build the project, making it ready for inspection. diff --git a/.github/workflows/ci.py b/.github/workflows/ci.py index 90aa07c04..f86d84eb8 100644 --- a/.github/workflows/ci.py +++ b/.github/workflows/ci.py @@ -111,7 +111,7 @@ def install_deps() -> None: run('brew', 'install', 'fish', openssl, *items) else: run('sudo apt-get update') - run('sudo apt-get install -y libgl1-mesa-dev libxi-dev libxrandr-dev libxinerama-dev ca-certificates' + run('sudo apt-get install -y --fix-missing libgl1-mesa-dev libxi-dev libxrandr-dev libxinerama-dev ca-certificates' ' libxcursor-dev libxcb-xkb-dev libdbus-1-dev libxkbcommon-dev libharfbuzz-dev libx11-xcb-dev zsh' ' libpng-dev liblcms2-dev libfontconfig-dev libxkbcommon-x11-dev libcanberra-dev libxxhash-dev uuid-dev' ' libsimde-dev libsystemd-dev libcairo2-dev zsh bash dash systemd-coredump gdb')