diff --git a/.github/scripts/generate_job_matrix.py b/.github/scripts/generate_job_matrix.py index a610921..b2c5509 100755 --- a/.github/scripts/generate_job_matrix.py +++ b/.github/scripts/generate_job_matrix.py @@ -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)) diff --git a/.github/workflows/sphinx-tuttest.yml b/.github/workflows/sphinx-tuttest.yml index de0c2ed..6685caf 100644 --- a/.github/workflows/sphinx-tuttest.yml +++ b/.github/workflows/sphinx-tuttest.yml @@ -35,6 +35,7 @@ jobs: env: LANG: "en_US.UTF-8" DEBIAN_FRONTEND: "noninteractive" + GHA_PREEMPTIBLE: ${{ matrix.preemptible }} container: ${{matrix.os}}:${{matrix.os-version}}