File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -392,8 +392,7 @@ jobs:
392
392
test-integration-freebsd :
393
393
timeout-minutes : 30
394
394
name : FreeBSD
395
- # ubuntu-24.04 lacks the vagrant package
396
- runs-on : ubuntu-22.04
395
+ runs-on : ubuntu-24.04
397
396
steps :
398
397
- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
399
398
with :
@@ -404,9 +403,19 @@ jobs:
404
403
key : vagrant-${{ matrix.box }}
405
404
- name : Set up vagrant
406
405
run : |
406
+ # from https://github.com/containerd/containerd/blob/v2.0.1/.github/workflows/ci.yml#L583-L596
407
+ # which is based on https://github.com/opencontainers/runc/blob/v1.1.8/.cirrus.yml#L41-L49
408
+ curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg
409
+ echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list
410
+ sudo sed -i 's/^Types: deb$/Types: deb deb-src/' /etc/apt/sources.list.d/ubuntu.sources
407
411
sudo apt-get update
408
- sudo apt-get install -y libvirt-daemon libvirt-daemon-system vagrant vagrant-libvirt
412
+ sudo apt-get install -y libvirt-daemon libvirt-daemon-system vagrant ovmf
413
+ # https://github.com/vagrant-libvirt/vagrant-libvirt/issues/1725#issuecomment-1454058646
414
+ sudo cp /usr/share/OVMF/OVMF_VARS_4M.fd /var/lib/libvirt/qemu/nvram/
409
415
sudo systemctl enable --now libvirtd
416
+ sudo apt-get build-dep -y ruby-libvirt
417
+ sudo apt-get install -y --no-install-recommends libxslt-dev libxml2-dev libvirt-dev ruby-bundler ruby-dev zlib1g-dev
418
+ sudo vagrant plugin install vagrant-libvirt
410
419
- name : Boot VM
411
420
run : |
412
421
ln -sf Vagrantfile.freebsd Vagrantfile
You can’t perform that action at this time.
0 commit comments