From c5ecc9456d37b83356dc8adafec1493023779e79 Mon Sep 17 00:00:00 2001 From: ifurther <55025025+ifurther@users.noreply.github.com> Date: Sun, 14 Jan 2024 04:10:23 +0800 Subject: [PATCH] update ci base image to ubuntu --- .github/workflows/release.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 252c44b..48d6c5b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ on: jobs: build: name: Run build ${{ matrix.BUILDER }} ${{ matrix.ARCH }} - runs-on: macos-12 + runs-on: ubuntu-latest strategy: matrix: BUILDER: ['virtualbox-iso.virtualbox', 'qemu.qemu'] @@ -15,6 +15,22 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Install dependencies + if: ${{matrix.BUILDER == 'virtualbox-iso.virtualbox'}} + run: | + echo "deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list + wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | sudo gpg --yes --output /usr/share/keyrings/oracle-virtualbox-2016.gpg --dearmor + sudo apt-get update + sudo apt-get install -y virtualbox-6.1 + + - name: Install dependencies + if: ${{matrix.BUILDER == 'qemu.qemu'}} + run: | + sudo apt-get update + sudo apt-get install -y \ + qemu-system-x86 \ + qemu libvirt-daemon-system + - name: Create Vagrant Cloud Box run: | curl \