ci: add non-preemptible exceptions
Signed-off-by: Adam Olech <aolech@antmicro.com>
This commit is contained in:
parent
52e9db39b4
commit
1b7094ffec
|
@ -11,6 +11,11 @@ examples = [
|
||||||
"hello-a"
|
"hello-a"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
non_preemptible = [
|
||||||
|
"litex",
|
||||||
|
"litex_linux"
|
||||||
|
]
|
||||||
|
|
||||||
jobs = []
|
jobs = []
|
||||||
|
|
||||||
osvers = [
|
osvers = [
|
||||||
|
@ -29,14 +34,16 @@ for osver in osvers:
|
||||||
'fpga-fam': "xc7",
|
'fpga-fam': "xc7",
|
||||||
'os': osver[0],
|
'os': osver[0],
|
||||||
'os-version': osver[1],
|
'os-version': osver[1],
|
||||||
'example': example
|
'example': example,
|
||||||
|
'preemptible': str(example not in non_preemptible).lower(),
|
||||||
} for example in examples]
|
} for example in examples]
|
||||||
|
|
||||||
jobs += [{
|
jobs += [{
|
||||||
'fpga-fam': "eos-s3",
|
'fpga-fam': "eos-s3",
|
||||||
'os': osver[0],
|
'os': osver[0],
|
||||||
'os-version': osver[1],
|
'os-version': osver[1],
|
||||||
'example': "counter"
|
'example': "counter",
|
||||||
|
'preemptible': str(True).lower(),
|
||||||
} for osver in osvers]
|
} for osver in osvers]
|
||||||
|
|
||||||
print('::set-output name=matrix::' + str(jobs))
|
print('::set-output name=matrix::' + str(jobs))
|
||||||
|
|
|
@ -35,6 +35,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
LANG: "en_US.UTF-8"
|
LANG: "en_US.UTF-8"
|
||||||
DEBIAN_FRONTEND: "noninteractive"
|
DEBIAN_FRONTEND: "noninteractive"
|
||||||
|
GHA_PREEMPTIBLE: ${{ matrix.preemptible }}
|
||||||
|
|
||||||
container: ${{matrix.os}}:${{matrix.os-version}}
|
container: ${{matrix.os}}:${{matrix.os-version}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue