From c404b7e4f9966fccf49f7c165b2b98f6c6a39db9 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Mon, 29 Jan 2024 10:28:07 +0900 Subject: [PATCH] ci package: Use Incus instead of Vagrant Because Vagrant isn't an OSS. --- .github/workflows/package.yaml | 55 ++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 25 deletions(-) diff --git a/.github/workflows/package.yaml b/.github/workflows/package.yaml index 0acb900..f761d3e 100644 --- a/.github/workflows/package.yaml +++ b/.github/workflows/package.yaml @@ -75,8 +75,10 @@ jobs: include: - id: debian-bookworm-amd64 task-namespace: apt + test-image: images:debian/12 - id: debian-bookworm-arm64 task-namespace: apt + test-image: images:debian/12/arm64 runs-on: ubuntu-latest timeout-minutes: 20 env: @@ -153,30 +155,33 @@ jobs: env: GH_TOKEN: ${{ github.token }} - test: - name: Test - needs: build - strategy: - fail-fast: false - matrix: - include: - - id: debian-bookworm-amd64 - task-namespace: apt - runs-on: macos-latest - timeout-minutes: 30 - steps: - - uses: actions/checkout@v4 - - uses: actions/download-artifact@v4 - with: - name: packages-${{ matrix.id }} - path: packages/${{ matrix.task-namespace }}/repositories - - name: Run VM + # Test + - name: Install test dependencies run: | - vagrant up ${{ matrix.id }} - - name: Run test + # We can use the official Ubuntu APT repository when + # ubuntu-latest is Ubuntu 24.04. + sudo curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc + cat <