Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions jobs/ci-run/build/builddqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,25 @@
- builder:
name: "make-cross-dqlite"
builders:
- host-src-command:
src_command: !include-raw-verbatim: ../scripts/snippet_make-dqlite-cross-build.sh
- shell: |-
#!/bin/bash
set -eu

if [ -z "{arch}" ]; then
echo "arch var is empty"
exit 1
fi

echo "Cross compiling dqlite for {arch}"

sudo docker run --rm --privileged multiarch/qemu-user-static:register --reset
sudo docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

sudo docker run --mount "type=bind,source=$JUJU_SRC_PATH,target=/juju" "multiarch/ubuntu-core:{arch}-focal" /bin/bash -c '
apt-get update
apt-get install sudo make -y
cd /juju
make -j`nproc` dqlite-build

- builder:
name: "upload-s3-dqlite"
Expand Down
13 changes: 0 additions & 13 deletions jobs/ci-run/scripts/snippet_make-dqlite-cross-build.sh

This file was deleted.

Loading