forked from antmicro/renode-linux-runner-action
-
Notifications
You must be signed in to change notification settings - Fork 1
126 lines (111 loc) · 3.46 KB
/
pull-request.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
name: Build and test on pull request
on: [pull_request]
jobs:
pr-build-kernel:
runs-on: ubuntu-latest
if: ${{ !github.event.act }}
strategy:
fail-fast: false
matrix:
arch: [riscv64, arm32]
include:
- arch: riscv64
board: hifive_unleashed
- arch: arm32
board: zynq_7000
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.buildroot-ccache
key: ${{ github.ref }}
- name: build kernel
run: scripts/compile-kernel.sh ${{ matrix.arch }} ${{ matrix.board }}
- name: upload artifacts
if: success()
uses: actions/upload-artifact@v3
with:
path: images/
pr-build-image:
runs-on: ubuntu-latest
if: ${{ !github.event.act }}
strategy:
fail-fast: false
matrix:
arch: [riscv64, arm32]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.buildroot-ccache
key: ${{ github.ref }}
- name: build images
run: scripts/compile-image.sh ${{ matrix.arch }} ${{ matrix.name }}
- name: upload artifacts
if: success()
uses: actions/upload-artifact@v3
with:
path: images/
pr-riscv64-test:
runs-on: ubuntu-latest
needs: [pr-build-kernel, pr-build-image]
if: ${{ !failure() && !github.event.act }}
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
path: ./
- name: test
uses: ./
with:
shared-dirs: tests
arch: riscv64
kernel: artifact/kernel-riscv64-hifive_unleashed.tar.xz
image: artifact/image-riscv64-default.tar.xz
renode-run: |
wget example.org
sh gpio.sh
sh i2c.sh
python pyrav4l2/.github/save_examples.py pyrav4l2/README.md
python examples/controls-enumeration.py
devices: |
vivid
gpio 0 16
i2c 0x1C
python-packages: |
git+https://github.com/antmicro/pyrav4l2.git@3c071a7494b6b67263c4dddb87b47025338fd960
git+https://github.com/antmicro/tuttest.git@c44309e0365c54759fb36864fb77bf8b347bd647
repos: https://github.com/antmicro/pyrav4l2.git pyrav4l2
pr-arm32-test:
runs-on: ubuntu-latest
needs: [pr-build-kernel, pr-build-image]
if: ${{ !failure() && !github.event.act }}
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
path: ./
- name: test
uses: ./
with:
shared-dirs: tests
arch: arm32
kernel: artifact/kernel-arm32-zynq_7000.tar.xz
image: artifact/image-arm32-default.tar.xz
renode-run: |
wget example.org
sh gpio.sh
sh i2c.sh
python pyrav4l2/.github/save_examples.py pyrav4l2/README.md
python examples/controls-enumeration.py
devices: |
vivid:
gpio:
left-bound: 0
right-bound: 16
i2c:
chip-addr: 0x1C
python-packages: |
git+https://github.com/antmicro/pyrav4l2.git@3c071a7494b6b67263c4dddb87b47025338fd960
git+https://github.com/antmicro/tuttest.git@c44309e0365c54759fb36864fb77bf8b347bd647
repos: https://github.com/antmicro/pyrav4l2.git pyrav4l2