ci: add non-preemptible exceptions

Signed-off-by: Adam Olech <aolech@antmicro.com>
This commit is contained in:
Adam Olech 2021-11-03 14:40:09 +01:00
parent 52e9db39b4
commit 1b7094ffec
2 changed files with 10 additions and 2 deletions

View File

@ -11,6 +11,11 @@ examples = [
"hello-a"
]
non_preemptible = [
"litex",
"litex_linux"
]
jobs = []
osvers = [
@ -29,14 +34,16 @@ for osver in osvers:
'fpga-fam': "xc7",
'os': osver[0],
'os-version': osver[1],
'example': example
'example': example,
'preemptible': str(example not in non_preemptible).lower(),
} for example in examples]
jobs += [{
'fpga-fam': "eos-s3",
'os': osver[0],
'os-version': osver[1],
'example': "counter"
'example': "counter",
'preemptible': str(True).lower(),
} for osver in osvers]
print('::set-output name=matrix::' + str(jobs))

View File

@ -35,6 +35,7 @@ jobs:
env:
LANG: "en_US.UTF-8"
DEBIAN_FRONTEND: "noninteractive"
GHA_PREEMPTIBLE: ${{ matrix.preemptible }}
container: ${{matrix.os}}:${{matrix.os-version}}