Complete migration from Cirrus CI to GHA (Lima)

Fix issue 5238

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 edbed618bf
commit 9d697a9222
5 changed files with 111 additions and 171 deletions
+11 -5
View File
@@ -210,8 +210,12 @@ jobs:
PKG_CONFIG_PATH: /usr/386/lib/pkgconfig
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@v6
@@ -230,13 +234,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: |
@@ -264,6 +268,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)"
@@ -273,7 +279,7 @@ jobs:
needs:
- test
- cross-i386
- fedora
- lima
runs-on: ubuntu-24.04
steps:
- run: echo "All jobs completed"