Complete migration from Cirrus CI to GHA (Lima)

Fix issue 5238

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
(cherry picked from commit 9d697a9222)
(cherry-pick was not clean)
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda
2026-04-12 16:57:21 +09:00
parent 760c2f9229
commit 287d64ded5
5 changed files with 103 additions and 156 deletions
+11 -5
View File
@@ -178,8 +178,12 @@ jobs:
- name: unit test
run: sudo -E PATH="$PATH" -- make GOARCH=386 localunittest
fedora:
timeout-minutes: 30
lima:
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
template: [almalinux-8, almalinux-9, centos-stream-10, fedora]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v5
@@ -198,13 +202,13 @@ jobs:
# CPUs: min(4, host CPU cores)
# RAM: min(4 GiB, half of host memory)
# Disk: 100 GiB
run: limactl start --plain --name=default template://fedora
run: limactl start --plain --name=default template:${{ matrix.template }}
- name: "Initialize VM"
run: |
set -eux -o pipefail
limactl cp -r . default:/tmp/runc
lima sudo /tmp/runc/script/setup_host_fedora.sh
lima sudo /tmp/runc/script/setup_host.sh
- name: "Show guest info"
run: |
@@ -232,6 +236,8 @@ jobs:
run: ssh -tt lima-default sudo -i make -C /tmp/runc localintegration
- name: "Run integration tests (systemd driver, rootless)"
# Needs cgroup v2
if: ${{ matrix.template != 'almalinux-8' }}
run: ssh -tt lima-default sudo -i make -C /tmp/runc localrootlessintegration RUNC_USE_SYSTEMD=yes
- name: "Run integration tests (fs driver, rootless)"
@@ -241,7 +247,7 @@ jobs:
needs:
- test
- cross-i386
- fedora
- lima
runs-on: ubuntu-24.04
steps:
- run: echo "All jobs completed"