Fix charm build

Newer versions of rpds-py need rust > 1.76; use the right version
from the distro and symlink the versionless binaries.

Add zuul charm build check to validate.

Change-Id: I9f644d97470c6dda679f12a5f4cb18684dd82fec
This commit is contained in:
James Page 2024-11-19 09:39:04 +00:00
parent 1c762f80ab
commit 24dc92049b
No known key found for this signature in database
GPG Key ID: BFECAECBA0E7D8C3
2 changed files with 13 additions and 2 deletions

View File

@ -2,3 +2,8 @@
templates:
- openstack-python3-charm-jobs
- openstack-cover-jobs
check:
jobs:
- charmbuild
vars:
charm_build_name: ovn-chassis

View File

@ -12,8 +12,14 @@ parts:
- python3-dev
- libffi-dev
- libssl-dev
- rustc
- cargo
- rustc-1.76
- cargo-1.76
- pkg-config
override-build: |
# Note(mylesjp): Force build to use rustc-1.76
ln -s /usr/bin/rustc-1.76 /usr/bin/rustc
ln -s /usr/bin/cargo-1.76 /usr/bin/cargo
craftctl default
build-snaps:
- charm/latest/edge
build-environment: