2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-22 01:51:51 +00:00

ci: try GitHub arm runners

Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
Adrian Reber 2025-01-18 13:43:15 +00:00 committed by Andrei Vagin
parent 2a428d20ce
commit 1cab647b37

View File

@ -1,4 +1,4 @@
name: Actuated aarch64 test
name: aarch64 test
on: [push, pull_request]
@ -11,32 +11,38 @@ jobs:
build:
# Actuated runners are not available in all repositories.
if: ${{ github.repository == 'checkpoint-restore/criu' }}
# The memory size and the number of CPUs can be freely selected.
# 3GB and 4 CPUs seems to be enough according to the result from 'vmmeter'.
runs-on: actuated-arm64-4cpu-3gb
# The memory size and the number of CPUs can be freely selected for
# the actuated runners. 3GB and 4 CPUs seems to be enough according to the
# result from 'vmmeter'.
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [actuated-arm64-4cpu-3gb, ubuntu-24.04-arm]
target: [GCC=1, CLANG=1]
steps:
# https://gist.github.com/alexellis/1f33e581c75e11e161fe613c46180771#file-metering-gha-md
# vmmeter start
- name: Prepare arkade
if: ${{ matrix.os == 'actuated-arm64-4cpu-3gb' }}
uses: alexellis/arkade-get@master
with:
crane: latest
print-summary: false
- name: Install vmmeter
if: ${{ matrix.os == 'actuated-arm64-4cpu-3gb' }}
run: |
crane export --platform linux/arm64 ghcr.io/openfaasltd/vmmeter:latest | sudo tar -xvf - -C /usr/local/bin
- name: Run vmmeter
if: ${{ matrix.os == 'actuated-arm64-4cpu-3gb' }}
uses: self-actuated/vmmeter-action@master
# vmmeter end
- uses: actions/checkout@v4
- name: Run Tests ${{ matrix.target }}
- name: Run Tests ${{ matrix.target }}/${{ matrix.os }}
# Following tests are failing on the actuated VMs:
# ./change_mnt_context --pidfile=change_mnt_context.pid --outfile=change_mnt_context.out
# 45: ERR: change_mnt_context.c:23: mount (errno = 22 (Invalid argument))