Skip to content

Commit

Permalink
ci: wait for the vm agent to be active before running commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsgruk committed Nov 25, 2023
1 parent 29c08ce commit ca92ae0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test-snap-can-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ jobs:
# Start a desktop VM
lxc launch images:ubuntu/22.04/desktop test-vm --vm \
-c limits.cpu=1 -c limits.memory=6GiB -d root,size=12GiB
# Wait for the VM agent to be running
while ! lxc exec test-vm -- cat /etc/hostname &>/dev/null; do
sleep 2
done
# Push the snap we just built into the VM and install it
lxc file push "${{ steps.build.outputs.snap }}" test-vm/home/ubuntu/signal.snap
Expand Down

0 comments on commit ca92ae0

Please sign in to comment.