Skip to content

Commit

Permalink
build: Enable building rust dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
orfeas-k committed Dec 4, 2024
1 parent b428f29 commit c5ccd8f
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 0 deletions.
6 changes: 6 additions & 0 deletions charms/kfp-api/charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ bases:
parts:
charm:
charm-python-packages: [setuptools, pip] # Fixes install of some packages
# Following lines are needed due to https://github.com/canonical/charmcraft/issues/1722
build-snaps: [rustup]
build-packages: [pkg-config, libffi-dev, libssl-dev]
override-build: |
rustup default stable
craftctl default
6 changes: 6 additions & 0 deletions charms/kfp-persistence/charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ bases:
parts:
charm:
charm-python-packages: [setuptools, pip] # Fixes install of some packages
# Following lines are needed due to https://github.com/canonical/charmcraft/issues/1722
build-snaps: [rustup]
build-packages: [pkg-config, libffi-dev, libssl-dev]
override-build: |
rustup default stable
craftctl default
6 changes: 6 additions & 0 deletions charms/kfp-profile-controller/charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ parts:
- files/upstream/sync.py
charm:
charm-python-packages: [setuptools, pip] # Fixes install of some packages
# Following lines are needed due to https://github.com/canonical/charmcraft/issues/1722
build-snaps: [rustup]
build-packages: [pkg-config, libffi-dev, libssl-dev]
override-build: |
rustup default stable
craftctl default
6 changes: 6 additions & 0 deletions charms/kfp-schedwf/charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ bases:
parts:
charm:
charm-python-packages: [setuptools, pip] # Fixes install of some packages
# Following lines are needed due to https://github.com/canonical/charmcraft/issues/1722
build-snaps: [rustup]
build-packages: [pkg-config, libffi-dev, libssl-dev]
override-build: |
rustup default stable
craftctl default
6 changes: 6 additions & 0 deletions charms/kfp-ui/charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ bases:
parts:
charm:
charm-python-packages: [setuptools, pip] # Fixes install of some packages
# Following lines are needed due to https://github.com/canonical/charmcraft/issues/1722
build-snaps: [rustup]
build-packages: [pkg-config, libffi-dev, libssl-dev]
override-build: |
rustup default stable
craftctl default
6 changes: 6 additions & 0 deletions charms/kfp-viewer/charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ bases:
parts:
charm:
charm-python-packages: [setuptools, pip] # Fixes install of some packages
# Following lines are needed due to https://github.com/canonical/charmcraft/issues/1722
build-snaps: [rustup]
build-packages: [pkg-config, libffi-dev, libssl-dev]
override-build: |
rustup default stable
craftctl default
6 changes: 6 additions & 0 deletions charms/kfp-viz/charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@ bases:
parts:
charm:
charm-python-packages: [setuptools, pip] # Fixes install of some packages
# Following lines are needed due to https://github.com/canonical/charmcraft/issues/1722
build-snaps: [rustup]
build-packages: [pkg-config, libffi-dev, libssl-dev]
override-build: |
rustup default stable
craftctl default

0 comments on commit c5ccd8f

Please sign in to comment.