-
Notifications
You must be signed in to change notification settings - Fork 48
220 lines (170 loc) Β· 6.07 KB
/
Action.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
# Copyright (C) 2020-2022 F4PGA Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
name: Action
on:
workflow_call:
jobs:
xc7-a50t:
runs-on: ubuntu-latest
name: 'π¬ arty_35 | counter_test'
steps:
- name: π§° Checkout
uses: actions/checkout@v3
- run: git clone https://github.com/chipsalliance/f4pga-examples
- name: π§ F4PGA Action (F4PGA)
uses: ./action
with:
image: xc7/a50t
cmd: TARGET="arty_35" make -C f4pga-examples/xc7/counter_test
- name: 'π€ Upload artifact: Arty 35 bitstream (F4PGA)'
uses: actions/upload-artifact@v3
with:
name: Action-F4PGA-arty_35-Bitstream
path: f4pga-examples/xc7/counter_test/build/arty_35/top.bit
if-no-files-found: error
- name: 'ποΈ Clean bitstream'
run: sudo rm -rf f4pga-examples/xc7/counter_test/build
- name: π§ F4PGA Action (SymbiFlow)
uses: ./action
with:
image: xc7/a50t
cmd: >-
F4PGA_USE_DEPRECATED=true
TARGET="arty_35"
make
-C f4pga-examples/xc7/counter_test
- name: 'π€ Upload artifact: Arty 35 bitstream (SymbiFlow)'
uses: actions/upload-artifact@v3
with:
name: Action-SymbiFlow-arty_35-Bitstream
path: f4pga-examples/xc7/counter_test/build/arty_35/top.bit
if-no-files-found: error
xc7-a100t:
runs-on: ubuntu-latest
name: 'π¬ arty_100 | picosoc_demo'
steps:
- name: π§° Checkout
uses: actions/checkout@v3
- run: git clone https://github.com/chipsalliance/f4pga-examples
- name: π§ F4PGA Action (SymbiFlow)
uses: ./action
with:
image: xc7/a100t
cmd: |
cd f4pga-examples/xc7/picosoc_demo
TARGET=arty_100 make
- name: 'π€ Upload artifact: Arty 100 bitstream (SymbiFlow)'
uses: actions/upload-artifact@v3
with:
name: Action-SymbiFlow-arty_100-Bitstream
path: f4pga-examples/xc7/picosoc_demo/build/arty_100/top.bit
if-no-files-found: error
eos-s3:
runs-on: ubuntu-latest
name: 'π¬ eos-s3 | btn_counter'
steps:
- name: π§° Checkout
uses: actions/checkout@v3
- run: git clone https://github.com/chipsalliance/f4pga-examples
- name: π§ F4PGA Action (F4PGA)
uses: ./action
with:
image: eos-s3
cmd: |
cd f4pga-examples/eos-s3/btn_counter
make
- name: 'π€ Upload artifact: eos-s3 bitstream (F4PGA)'
uses: actions/upload-artifact@v3
with:
name: Action-F4PGA-eos-s3-Bitstream
path: f4pga-examples/eos-s3/btn_counter/build/top.bit
if-no-files-found: error
- name: 'ποΈ Clean bitstream'
run: sudo rm -rf f4pga-examples/eos-s3/btn_counter/build
- name: π§ F4PGA Action (SymbiFlow)
uses: ./action
with:
image: eos-s3
cmd: |
cd f4pga-examples/eos-s3/btn_counter
F4PGA_USE_DEPRECATED=true make
- name: 'π€ Upload artifact: eos-s3 bitstream (SymbiFlow)'
uses: actions/upload-artifact@v3
with:
name: Action-SymbiFlow-eos-s3-Bitstream
path: f4pga-examples/eos-s3/btn_counter/build/top.bit
if-no-files-found: error
Test-Verilog:
runs-on: ubuntu-latest
name: π¬ Verilog
steps:
- name: π§° Checkout
uses: actions/checkout@v3
- name: π§ F4PGA Action (arty_35 | verilog/counter)
uses: ./action
with:
image: xc7/a50t
cmd: |
cd test/verilog/counter
f4pga build --flow arty_35.json
- name: 'π€ Upload artifact: Arty 35 bitstream'
uses: actions/upload-artifact@v3
with:
name: arty_35-Bitstream-Verilog-Counter
path: test/verilog/counter/build/arty_35/top.bit
if-no-files-found: error
Test-VHDL:
runs-on: ubuntu-latest
name: π¬ VHDL
steps:
- name: π§° Checkout
uses: actions/checkout@v3
- name: π§ GHDL synth
run: make -C test/vhdl/counter synth
- name: π§ F4PGA Action (arty_35 | vhdl/counter)
uses: ./action
with:
image: xc7/a50t
cmd: |
cd test/vhdl/counter
f4pga build --flow arty_35.json
- name: 'π€ Upload artifact: Arty 35 bitstream'
uses: actions/upload-artifact@v3
with:
name: arty_35-Bitstream-VHDL-Counter
path: test/vhdl/counter/build/arty_35/Arty_Counter.bit
if-no-files-found: error
Test-VHDL-plugin:
runs-on: ubuntu-latest
name: π¬ VHDL-plugin
steps:
- name: π§° Checkout
uses: actions/checkout@v3
- name: π§ GHDL synth
run: make -C test/vhdl/counter synth-plugin
- name: π§ F4PGA Action (arty_35 | vhdl/counter)
uses: ./action
with:
image: xc7/a50t
cmd: |
cd test/vhdl/counter
f4pga build --flow arty_35.json
- name: 'π€ Upload artifact: Arty 35 bitstream'
uses: actions/upload-artifact@v3
with:
name: arty_35-Bitstream-VHDL-plugin-Counter
path: test/vhdl/counter/build/arty_35/Arty_Counter.bit
if-no-files-found: error