From c5f26a8c01423c224764463e462c96eafd47d434 Mon Sep 17 00:00:00 2001 From: Rafal Kapuscik Date: Mon, 4 Apr 2022 12:31:49 +0200 Subject: [PATCH] Exclude unsupported tests Signed-off-by: Rafal Kapuscik --- .github/scripts/generate_job_matrix.py | 28 ++++++++++++++++++-------- .github/workflows/sphinx-tuttest.yml | 18 +++++++++++++++-- 2 files changed, 36 insertions(+), 10 deletions(-) diff --git a/.github/scripts/generate_job_matrix.py b/.github/scripts/generate_job_matrix.py index 258928b..7e496a0 100755 --- a/.github/scripts/generate_job_matrix.py +++ b/.github/scripts/generate_job_matrix.py @@ -19,6 +19,7 @@ from sys import argv as sys_argv isFork = len(sys_argv)>1 and sys_argv[1] != 'chipsalliance/f4pga-examples' +usesSurelog = len(sys_argv)>2 and sys_argv[2] == 'Surelog' runs_on = ( 'ubuntu-latest' @@ -27,12 +28,7 @@ runs_on = ( ) examples = [ - "picosoc", - "litex", - "litex_linux", - "button_controller", "pulse_width_led", - "timer", "hello-a", "hello-b", "hello-c", @@ -43,10 +39,20 @@ examples = [ "hello-h", "hello-i", "hello-j", - "hello-k", - "hello-l" ] +# Skip tests that are currently unsupported +if not usesSurelog: + examples = [ + "litex", + "picosoc", + "litex_linux", + "button_controller", + "timer", + "hello-k", + "hello-l" + ] + examples + jobs = [] osvers = [ @@ -61,8 +67,14 @@ osvers = [ if not isFork: examples = [ "counter", - "litex_sata", ] + examples + + # Skip tests that are currently unsupported + if not usesSurelog: + examples = [ + "litex_sata", + ] + examples + osvers += [ ("ubuntu", "xenial"), ("ubuntu", "bionic"), diff --git a/.github/workflows/sphinx-tuttest.yml b/.github/workflows/sphinx-tuttest.yml index 736b4a1..fedc675 100644 --- a/.github/workflows/sphinx-tuttest.yml +++ b/.github/workflows/sphinx-tuttest.yml @@ -78,12 +78,26 @@ jobs: **/*.bit **/plot_*.svg + Matrix-Surelog: + runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.generate.outputs.matrix }} + + steps: + + - name: Setup repository + uses: actions/checkout@v2 + + - name: Generate examples matrix + id: generate + run: ./.github/scripts/generate_job_matrix.py '${{ github.repository }}' Surelog + Test-Surelog: - needs: Matrix + needs: Matrix-Surelog strategy: fail-fast: false matrix: - include: ${{ fromJson(needs.Matrix.outputs.matrix) }} + include: ${{ fromJson(needs.Matrix-Surelog.outputs.matrix) }} runs-on: ${{ matrix.runs-on }} name: Surelog frontend - ${{ matrix.fpga-fam }} | ${{ matrix.os }} ${{ matrix.os-version }} | ${{ matrix.example }}