f4pga-examples/.github/scripts/generate_job_matrix.py
umarcor 34e6234214 ci: move matrix generation script to a file
Signed-off-by: umarcor <unai.martinezcorral@ehu.eus>
2021-10-20 00:16:17 +02:00

42 lines
757 B
Python
Executable file

#!/usr/bin/env python3
examples = [
"counter",
"picosoc",
"litex",
"litex_linux",
"button_controller",
"pulse_width_led",
"timer",
"hello-a"
]
jobs = []
osvers = [
("ubuntu", "xenial"),
("ubuntu", "bionic"),
("ubuntu", "focal"),
("centos", "7"),
("centos", "8"),
("debian", "buster"),
("debian", "bullseye"),
("debian", "sid")
]
for osver in osvers:
jobs += [{
'fpga-fam': "xc7",
'os': osver[0],
'os-version': osver[1],
'example': example
} for example in examples]
jobs += [{
'fpga-fam': "eos-s3",
'os': osver[0],
'os-version': osver[1],
'example': "counter"
} for osver in osvers]
print('::set-output name=matrix::' + str(jobs))