-
-
Notifications
You must be signed in to change notification settings - Fork 32
89 lines (88 loc) · 2.5 KB
/
test-cpu_info.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
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@v3
- 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@v3
- 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@v3
- 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@v3
- 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@v3
- 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: |
grep -c "CPU architecture: 8" cpuinfo.txt
grep -c 676974687562004b cpuinfo.txt