Skip to content

Commit

Permalink
Stage plugin env script, and flag plugin as experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
MonicaisHer committed Mar 7, 2024
1 parent 0e415a2 commit ffcd7c6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion snapcraft/parts/lifecycle.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
import argparse


_EXPERIMENTAL_PLUGINS = ["kernel"]
_EXPERIMENTAL_PLUGINS = ["kernel, matter-sdk"]


def run(command_name: str, parsed_args: "argparse.Namespace") -> None:
Expand Down
7 changes: 6 additions & 1 deletion tests/spread/plugins/craft-parts/matter-sdk/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,18 @@ parts:
matter-sdk:
plugin: matter-sdk
matter-sdk-version: "1536ca20c5917578ca40ce509400e97b52751788" # use this commit with ptpython version fix; needs to be updated once matter sdk have a stable release
override-build: |
craftctl default
cp -r $CRAFT_PART_BUILD/matter-sdk-env.sh $CRAFT_PART_INSTALL
stage:
- matter-sdk-env.sh

lighting:
plugin: nil
after: [matter-sdk]
override-build: |
# Source the Matter SDK environment variables
source ../../matter-sdk/build/matter-sdk-env.sh
source $CRAFT_STAGE/matter-sdk-env.sh
# Build the lighting app for snapcraft spread testing purposes
cd ../../matter-sdk/build/examples/lighting-app/linux
Expand Down

0 comments on commit ffcd7c6

Please sign in to comment.