From 0f09cf126133a5efb6bda13b13fbfb73856b2b2a Mon Sep 17 00:00:00 2001 From: Tiago Nobrega Date: Sat, 21 Dec 2024 11:18:50 -0300 Subject: [PATCH] build(snap): speed up snap packing - Don't build libgit2's tests (we don't run them) - Use all available cores when building Python deps from source --- snap/snapcraft.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 007dcae83..8f66bb5e7 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -90,6 +90,7 @@ parts: plugin: cmake cmake-parameters: - -DCMAKE_INSTALL_PREFIX=/usr + - -DBUILD_TESTS=OFF build-packages: - libssl-dev build-attributes: @@ -116,6 +117,7 @@ parts: - "PIP_NO_BINARY": ":all:" - UV_FROZEN: "true" - UV_PYTHON: /usr/bin/python3 + - MAKEOPTS: -j$(nproc --all) organize: bin/craftctl: libexec/rockcraft/craftctl # Extensions currently expect to find data files in share/rockcraft/