2021-10-19 18:05:37 -04:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
2021-12-14 03:21:51 -05:00
|
|
|
from sys import argv as sys_argv
|
|
|
|
|
2021-12-14 22:32:15 -05:00
|
|
|
isFork = len(sys_argv)>1 and sys_argv[1] != 'SymbiFlow/symbiflow-examples'
|
|
|
|
|
2021-12-14 03:21:51 -05:00
|
|
|
runs_on = (
|
|
|
|
'ubuntu-latest'
|
2021-12-14 22:32:15 -05:00
|
|
|
if isFork else
|
2021-12-14 03:21:51 -05:00
|
|
|
['self-hosted', 'Linux', 'X64']
|
|
|
|
)
|
|
|
|
|
2021-10-19 18:05:37 -04:00
|
|
|
examples = [
|
|
|
|
"picosoc",
|
|
|
|
"litex",
|
|
|
|
"litex_linux",
|
|
|
|
"button_controller",
|
|
|
|
"pulse_width_led",
|
|
|
|
"timer",
|
2021-10-23 19:40:31 -04:00
|
|
|
"hello-a",
|
|
|
|
"hello-b",
|
|
|
|
"hello-c",
|
2021-10-23 21:42:30 -04:00
|
|
|
"hello-d",
|
|
|
|
"hello-e",
|
|
|
|
"hello-f",
|
|
|
|
"hello-g",
|
|
|
|
"hello-h",
|
|
|
|
"hello-i",
|
2021-10-23 21:50:28 -04:00
|
|
|
"hello-j",
|
|
|
|
"hello-k",
|
|
|
|
"hello-l"
|
2021-10-19 18:05:37 -04:00
|
|
|
]
|
|
|
|
|
|
|
|
jobs = []
|
|
|
|
|
|
|
|
osvers = [
|
|
|
|
("ubuntu", "focal"),
|
|
|
|
("centos", "8"),
|
|
|
|
("debian", "buster"),
|
|
|
|
("debian", "bullseye"),
|
2021-12-14 03:20:51 -05:00
|
|
|
("debian", "sid"),
|
|
|
|
("fedora", "35")
|
2021-10-19 18:05:37 -04:00
|
|
|
]
|
|
|
|
|
2021-12-14 22:32:15 -05:00
|
|
|
if not isFork:
|
2021-12-15 03:42:37 -05:00
|
|
|
examples = [
|
|
|
|
"counter",
|
|
|
|
"litex_sata",
|
|
|
|
] + examples
|
2021-12-14 22:32:15 -05:00
|
|
|
osvers += [
|
|
|
|
("ubuntu", "xenial"),
|
|
|
|
("ubuntu", "bionic"),
|
|
|
|
("centos", "7"),
|
|
|
|
]
|
|
|
|
|
2021-10-19 18:05:37 -04:00
|
|
|
for osver in osvers:
|
|
|
|
jobs += [{
|
2021-12-14 03:21:51 -05:00
|
|
|
'runs-on': runs_on,
|
2021-10-19 18:05:37 -04:00
|
|
|
'fpga-fam': "xc7",
|
|
|
|
'os': osver[0],
|
|
|
|
'os-version': osver[1],
|
|
|
|
'example': example
|
|
|
|
} for example in examples]
|
|
|
|
|
|
|
|
jobs += [{
|
2021-12-14 03:21:51 -05:00
|
|
|
'runs-on': runs_on,
|
2021-10-19 18:05:37 -04:00
|
|
|
'fpga-fam': "eos-s3",
|
|
|
|
'os': osver[0],
|
|
|
|
'os-version': osver[1],
|
|
|
|
'example': "counter"
|
|
|
|
} for osver in osvers]
|
|
|
|
|
2021-12-14 03:21:51 -05:00
|
|
|
print(f'::set-output name=matrix::{jobs!s}')
|
|
|
|
|
|
|
|
print(str(jobs))
|