Skip to content

Commit

Permalink
snapcraft: do not build embedded doc for LXD if arch is riscv
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Mougard <[email protected]>
  • Loading branch information
gabrielmougard committed Sep 8, 2023
1 parent 3b072c1 commit d6f8aca
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1403,16 +1403,18 @@ parts:
go build -o "${CRAFT_PART_INSTALL}/bin/lxd-benchmark" github.com/canonical/lxd/lxd-benchmark
go build -o "${CRAFT_PART_INSTALL}/bin/lxd-user" github.com/canonical/lxd/lxd-user
# Setup bash completion
mkdir -p ${CRAFT_PART_INSTALL}/etc/bash_completion.d/
cp scripts/bash/lxd-client ${CRAFT_PART_INSTALL}/etc/bash_completion.d/snap.lxd.lxc
[ "$(uname -m)" = "riscv64" ] && exit 0
# Build the static website
make doc
# Copy the static website
mkdir -p "${CRAFT_PART_INSTALL}/share/lxd-documentation"
cp -a doc/html/. "$CRAFT_PART_INSTALL/share/lxd-documentation/"
# Setup bash completion
mkdir -p ${CRAFT_PART_INSTALL}/etc/bash_completion.d/
cp scripts/bash/lxd-client ${CRAFT_PART_INSTALL}/etc/bash_completion.d/snap.lxd.lxc
organize:
usr/bin/: bin/
usr/lib/: lib/
Expand Down

0 comments on commit d6f8aca

Please sign in to comment.