Skip to content

Commit

Permalink
ci: switch to ubuntu runner for freebsd job
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Sep 24, 2024
1 parent 1da789b commit bd35fee
Showing 1 changed file with 10 additions and 19 deletions.
29 changes: 10 additions & 19 deletions .github/workflows/test-os.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ jobs:
uses: crazy-max/ghaction-dump-context@v2

test-freebsd-amd64:
runs-on: macos-13
runs-on: ubuntu-22.04
needs:
- build
env:
Expand All @@ -194,46 +194,37 @@ jobs:
name: Cache Vagrant boxes
uses: actions/cache@v4
with:
path: ~/.vagrant.d/boxes
path: /root/.vagrant.d
key: ${{ runner.os }}-vagrant-${{ hashFiles('hack/Vagrantfile.freebsd13') }}
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
sudo systemctl enable --now libvirtd
vagrant --version
VBoxManage -v
-
name: Set up vagrant
run: |
vagrant up --no-tty
sudo vagrant up --no-tty
-
name: Smoke test
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
with:
timeout_minutes: 20
max_attempts: 5
command: |
vagrant up --provision-with=test-smoke
sudo vagrant up --provision-with=test-smoke
-
name: BuildKit logs
if: always()
run: |
vagrant ssh -- "sudo cat /vagrant/.tmp/logs/buildkitd"
sudo vagrant ssh -- "sudo cat /vagrant/.tmp/logs/buildkitd"
-
name: Containerd logs
if: always()
run: |
vagrant ssh -- "sudo cat /vagrant/.tmp/logs/containerd"
-
name: Dump context
if: failure()
uses: crazy-max/ghaction-dump-context@v2
sudo vagrant ssh -- "sudo cat /vagrant/.tmp/logs/containerd"

0 comments on commit bd35fee

Please sign in to comment.