Skip to content

Support ubuntu 24.04 image #281

Support ubuntu 24.04 image

Support ubuntu 24.04 image #281

Workflow file for this run

name: Test cpu info
on:
push:
branches:
- 'main'
- 'releases/**'
pull_request:
workflow_dispatch:
jobs:
test_zero_w:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./ # pguyot/arm-runner-action@HEAD
with:
cpu_info: cpuinfo/raspberrypi_zero_w
bind_mount_repository: true
cpu: arm1176
commands: |
cat /proc/cpuinfo > cpuinfo.txt
- name: Test content of cpuinfo
run: |
grep -c ARMv6 cpuinfo.txt
grep -c "CPU architecture: 7" cpuinfo.txt
grep -c 6769746875620000 cpuinfo.txt
test_3b:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./ # pguyot/arm-runner-action@HEAD
with:
cpu_info: cpuinfo/raspberrypi_3b
bind_mount_repository: true
cpu: cortex-a7
commands: |
cat /proc/cpuinfo > cpuinfo.txt
- name: Test content of cpuinfo
run: |
grep -c ARMv7 cpuinfo.txt
grep -c "CPU architecture: 7" cpuinfo.txt
grep -c 676974687562003b cpuinfo.txt
test_zero2_w:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./ # pguyot/arm-runner-action@HEAD
with:
cpu_info: cpuinfo/raspberrypi_zero2_w
bind_mount_repository: true
cpu: cortex-a7
commands: |
cat /proc/cpuinfo > cpuinfo.txt
- name: Test content of cpuinfo
run: |
grep -c ARMv7 cpuinfo.txt
grep -c "CPU architecture: 7" cpuinfo.txt
grep -c 6769746875620002 cpuinfo.txt
test_zero2_w_arm64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./ # pguyot/arm-runner-action@HEAD
with:
cpu_info: cpuinfo/raspberrypi_zero2_w_arm64
bind_mount_repository: true
cpu: cortex-a53
base_image: raspios_lite_arm64:latest
commands: |
cat /proc/cpuinfo > cpuinfo.txt
- name: Test content of cpuinfo
run: |
grep -c "CPU architecture: 8" cpuinfo.txt
grep -c 6769746875620002 cpuinfo.txt
test_4b:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./ # pguyot/arm-runner-action@HEAD
with:
cpu_info: cpuinfo/raspberrypi_4b
bind_mount_repository: true
cpu: cortex-a53
commands: |
cat /proc/cpuinfo > cpuinfo.txt
- name: Test content of cpuinfo
run: |
cat cpuinfo.txt
grep -c "CPU architecture: 8" cpuinfo.txt
grep -c 676974687562004b cpuinfo.txt
test_5:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./ # pguyot/arm-runner-action@HEAD
with:
cpu_info: cpuinfo/raspberrypi_5
bind_mount_repository: true
cpu: cortex-a53
commands: |
cat /proc/cpuinfo > cpuinfo.txt
- name: Test content of cpuinfo
run: |
grep -c "CPU architecture: 8" cpuinfo.txt
grep -c 6769746875620050 cpuinfo.txt
test_cortex_a76:
# Ubuntu 24.04 comes with qemu >= 8.2 which does emulate /proc/cpuinfo
# on aarch64
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./ # pguyot/arm-runner-action@HEAD
with:
bind_mount_repository: true
cpu: cortex-a76
commands: |
cat /proc/cpuinfo > cpuinfo.txt
- name: Test content of cpuinfo
run: |
grep -c "model name : ARMv8 Processor rev 0 (v8l)" cpuinfo.txt
grep -c "CPU architecture: 8" cpuinfo.txt