-
Notifications
You must be signed in to change notification settings - Fork 13
138 lines (127 loc) · 4.49 KB
/
main.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
127
128
129
130
131
132
133
134
135
136
137
138
name: build & test
on: [push]
jobs:
ubuntu-build-icebreaker-r31:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: YosysHQ/setup-oss-cad-suite@v2
- run: git submodule update --init gateware/external/no2misc
- run: yosys --version
- run: make HW_REV=HW_R31 BOARD=icebreaker CORE=mirror -C gateware
- uses: actions/upload-artifact@v3
with:
name: ubuntu-build-icebreaker.bin
path: gateware/build/icebreaker/top.bin
ubuntu-build-icebreaker-r33:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: YosysHQ/setup-oss-cad-suite@v2
- run: git submodule update --init gateware/external/no2misc
- run: yosys --version
- run: make HW_REV=HW_R33 BOARD=icebreaker CORE=mirror -C gateware
- uses: actions/upload-artifact@v3
with:
name: ubuntu-build-icebreaker.bin
path: gateware/build/icebreaker/top.bin
windows-build-icebreaker:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: msys2/setup-msys2@v2
with:
install: >-
git
make
- uses: actions/checkout@v3
- uses: YosysHQ/setup-oss-cad-suite@v2
- run: git submodule update --init gateware/external/no2misc
- run: |
export PATH=$PATH:$RUNNER_TEMP/oss-cad-suite/bin
export PATH=$PATH:$RUNNER_TEMP/oss-cad-suite/lib
yosys --version
make HW_REV=HW_R33 BOARD=icebreaker CORE=mirror -C gateware
- uses: actions/upload-artifact@v3
with:
name: windows-build-icebreaker.bin
path: gateware/build/icebreaker/top.bin
macos-build-icebreaker:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: YosysHQ/setup-oss-cad-suite@v2
- run: git submodule update --init gateware/external/no2misc
- run: |
yosys --version
make HW_REV=HW_R33 BOARD=icebreaker CORE=mirror -C gateware
- uses: actions/upload-artifact@v3
with:
name: macos-build-icebreaker.bin
path: gateware/build/icebreaker/top.bin
ubuntu-build-colorlight-i5:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: YosysHQ/setup-oss-cad-suite@v2
- run: git submodule update --init gateware/external/no2misc
- run: yosys --version
- run: make HW_REV=HW_R33 BOARD=colorlight_i5 CORE=mirror -C gateware
- uses: actions/upload-artifact@v3
with:
name: ubuntu-build-colorlight-i5.bin
path: gateware/build/colorlight_i5/top.bin
ubuntu-build-colorlight-i9:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: YosysHQ/setup-oss-cad-suite@v2
- run: git submodule update --init gateware/external/no2misc
- run: yosys --version
- run: make HW_REV=HW_R33 BOARD=colorlight_i9 CORE=mirror -C gateware
- uses: actions/upload-artifact@v3
with:
name: ubuntu-build-colorlight-i9.bin
path: gateware/build/colorlight_i9/top.bin
ubuntu-build-ecpix-5:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: YosysHQ/setup-oss-cad-suite@v2
- run: git submodule update --init gateware/external/no2misc
- run: yosys --version
- run: make HW_REV=HW_R33 BOARD=ecpix5 CORE=mirror -C gateware
- uses: actions/upload-artifact@v3
with:
name: ubuntu-build-ecpix-5.bin
path: gateware/build/ecpix5/top.bin
ubuntu-build-pico-ice:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: YosysHQ/setup-oss-cad-suite@v2
- run: git submodule update --init gateware/external/no2misc
- run: yosys --version
- run: make HW_REV=HW_R33 BOARD=pico_ice CORE=mirror -C gateware
- uses: actions/upload-artifact@v3
with:
name: ubuntu-build-pico-ice.bin
path: gateware/build/pico_ice/top.bin
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: YosysHQ/setup-oss-cad-suite@v2
- run: git submodule update --init gateware/external/no2misc
- run: cocotb-config -v
- run: cd gateware/sim && ./00_run.sh
run-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: YosysHQ/setup-oss-cad-suite@v2
- run: git submodule update --init gateware/external/no2misc
- run: verilator --version
- run: cd gateware && scripts/verilator_lint.sh