Skip to content

Commit

Permalink
build(snap): speed up snap packing
Browse files Browse the repository at this point in the history
- Don't build libgit2's tests (we don't run them)
- Use all available cores when building Python deps from source
  • Loading branch information
tigarmo committed Dec 21, 2024
1 parent 1a0e9e8 commit 0f09cf1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ parts:
plugin: cmake
cmake-parameters:
- -DCMAKE_INSTALL_PREFIX=/usr
- -DBUILD_TESTS=OFF
build-packages:
- libssl-dev
build-attributes:
Expand All @@ -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/
Expand Down

0 comments on commit 0f09cf1

Please sign in to comment.