diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 967f883..6d320e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,14 +1,14 @@ name: ci on: push: - tags: + # tags: schedule: - cron: "0 0 * * 1" workflow_dispatch: jobs: package-box: name: Package Vagrant Boxes - runs-on: macos-12 + runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: @@ -17,7 +17,7 @@ jobs: - fbsd_12_4 steps: - name: Install Vagrant - run: brew install vagrant + run: sudo apt-get install vagrant - name: Cache Vagrant boxes uses: actions/cache@v3 with: @@ -26,11 +26,13 @@ jobs: restore-keys: | ${{ matrix.box }}-vagrant-20231102- - uses: actions/checkout@v3 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 - name: Set up VM run: | vagrant plugin install vagrant-disksize vagrant status - vagrant up ${{ matrix.box }} + vagrant up --provider qemu ${{ matrix.box }} - name: Package box run: | vagrant package ${{ matrix.box }} --output ${{ matrix.box }}.box diff --git a/Vagrantfile b/Vagrantfile index 085c3c2..98b2743 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -65,7 +65,7 @@ Vagrant.configure("2") do |config| du -ah / | sort -r -h | head -25 SHELL - config.vm.provider "virtualbox" do |v| + config.vm.provider "qemu" do |v| v.memory = 8192 v.cpus = 3 end