Exclude unsupported tests

Signed-off-by: Rafal Kapuscik <rkapuscik@antmicro.com>
This commit is contained in:
Rafal Kapuscik 2022-04-04 12:31:49 +02:00 committed by Kamil Rakoczy
parent c656a3a948
commit c5f26a8c01
2 changed files with 36 additions and 10 deletions

View File

@ -19,6 +19,7 @@
from sys import argv as sys_argv from sys import argv as sys_argv
isFork = len(sys_argv)>1 and sys_argv[1] != 'chipsalliance/f4pga-examples' isFork = len(sys_argv)>1 and sys_argv[1] != 'chipsalliance/f4pga-examples'
usesSurelog = len(sys_argv)>2 and sys_argv[2] == 'Surelog'
runs_on = ( runs_on = (
'ubuntu-latest' 'ubuntu-latest'
@ -27,12 +28,7 @@ runs_on = (
) )
examples = [ examples = [
"picosoc",
"litex",
"litex_linux",
"button_controller",
"pulse_width_led", "pulse_width_led",
"timer",
"hello-a", "hello-a",
"hello-b", "hello-b",
"hello-c", "hello-c",
@ -43,10 +39,20 @@ examples = [
"hello-h", "hello-h",
"hello-i", "hello-i",
"hello-j", "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 = [] jobs = []
osvers = [ osvers = [
@ -61,8 +67,14 @@ osvers = [
if not isFork: if not isFork:
examples = [ examples = [
"counter", "counter",
"litex_sata",
] + examples ] + examples
# Skip tests that are currently unsupported
if not usesSurelog:
examples = [
"litex_sata",
] + examples
osvers += [ osvers += [
("ubuntu", "xenial"), ("ubuntu", "xenial"),
("ubuntu", "bionic"), ("ubuntu", "bionic"),

View File

@ -78,12 +78,26 @@ jobs:
**/*.bit **/*.bit
**/plot_*.svg **/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: Test-Surelog:
needs: Matrix needs: Matrix-Surelog
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
include: ${{ fromJson(needs.Matrix.outputs.matrix) }} include: ${{ fromJson(needs.Matrix-Surelog.outputs.matrix) }}
runs-on: ${{ matrix.runs-on }} runs-on: ${{ matrix.runs-on }}
name: Surelog frontend - ${{ matrix.fpga-fam }} | ${{ matrix.os }} ${{ matrix.os-version }} | ${{ matrix.example }} name: Surelog frontend - ${{ matrix.fpga-fam }} | ${{ matrix.os }} ${{ matrix.os-version }} | ${{ matrix.example }}