Skip to content

Commit

Permalink
Merge pull request moby#5353 from crazy-max/ci-freebsd-on-ubuntu
Browse files Browse the repository at this point in the history
ci: switch to ubuntu runner for freebsd job
  • Loading branch information
crazy-max committed Sep 24, 2024
2 parents 1da789b + 49142c5 commit 856ae24
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/test-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,10 @@ jobs:
uses: crazy-max/ghaction-dump-context@v2

test-freebsd-amd64:
runs-on: macos-13
runs-on: ubuntu-22.04
needs:
- build
env:
VAGRANT_VAGRANTFILE: hack/Vagrantfile.freebsd13
GOOS: freebsd
steps:
-
Expand All @@ -195,25 +194,23 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.vagrant.d/boxes
key: ${{ runner.os }}-vagrant-${{ hashFiles('hack/Vagrantfile.freebsd13') }}
key: ${{ runner.os }}-vagrant-${{ hashFiles('hack/Vagrantfile.freebsd') }}
restore-keys: |
${{ runner.os }}-vagrant-
-
name: Install vagrant and VirtualBox
run: |
set -x
brew tap hashicorp/tap
brew install hashicorp/tap/hashicorp-vagrant
brew install --cask virtualbox
-
name: Check versions
name: Install vagrant
run: |
set -x
sudo apt-get update
sudo apt-get install -y libvirt-daemon libvirt-daemon-system vagrant vagrant-libvirt ruby-libvirt
sudo systemctl enable --now libvirtd
sudo chmod a+rw /var/run/libvirt/libvirt-sock
vagrant plugin install vagrant-libvirt
vagrant --version
VBoxManage -v
-
name: Set up vagrant
run: |
ln -sf hack/Vagrantfile.freebsd Vagrantfile
vagrant up --no-tty
-
name: Smoke test
Expand All @@ -233,7 +230,3 @@ jobs:
if: always()
run: |
vagrant ssh -- "sudo cat /vagrant/.tmp/logs/containerd"
-
name: Dump context
if: failure()
uses: crazy-max/ghaction-dump-context@v2
5 changes: 1 addition & 4 deletions hack/Vagrantfile.freebsd13 → hack/Vagrantfile.freebsd
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
config.vm.define "fbsd_13_2" do |fbsd_13_2|
fbsd_13_2.vm.box = "freebsd/FreeBSD-13.2-RELEASE"
end

config.vm.box = "generic/freebsd14"
config.vm.boot_timeout = 900
config.vm.synced_folder ".", "/vagrant", type: "rsync"
config.ssh.keep_alive = true
Expand Down

0 comments on commit 856ae24

Please sign in to comment.