Skip to content

Commit

Permalink
build: Enable building rust dependencies (#258)
Browse files Browse the repository at this point in the history
* build: Enable building rust dependencies

Ref canonical/bundle-kubeflow#1178

* ci: remove destructive-mode
  • Loading branch information
orfeas-k authored Dec 9, 2024
1 parent ed3b354 commit 1f15060
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/integrate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
- name: Run integration tests
run: |
sg snap_microk8s -c "juju add-model knative-test"
sg snap_microk8s -c "tox -vve integration -- --model knative-test --destructive-mode"
sg snap_microk8s -c "tox -vve integration -- --model knative-test"
- run: kubectl get all -A
if: failure()
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
- name: Run integration tests
run: |
sg snap_microk8s -c "juju add-model cos-test"
sg snap_microk8s -c "tox -vve cos-integration -- --model cos-test --destructive-mode"
sg snap_microk8s -c "tox -vve cos-integration -- --model cos-test"
- run: kubectl get pod/prometheus-k8s-0 -n knative-test -o=jsonpath='{.status}'
if: failure()
Expand Down
7 changes: 6 additions & 1 deletion charms/knative-eventing/charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ bases:
parts:
charm:
charm-python-packages: [setuptools, pip]
build-packages: [git]
# 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/knative-operator/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]
# 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
7 changes: 6 additions & 1 deletion charms/knative-serving/charmcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ bases:
parts:
charm:
charm-python-packages: [setuptools, pip]
build-packages: [git]
# 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 1f15060

Please sign in to comment.