From adeea8ea2c9575aeb255809ba79a3aa86ad2f1fc Mon Sep 17 00:00:00 2001 From: Rafal Kolucki Date: Fri, 2 Dec 2022 17:28:50 +0100 Subject: [PATCH] ci: add K4N8 examples building to CI Signed-off-by: Rafal Kolucki --- .github/scripts/build-examples.sh | 8 ++++++++ .github/scripts/generate_job_matrices.py | 10 ++++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/scripts/build-examples.sh b/.github/scripts/build-examples.sh index 5e84a2c..5d9e005 100755 --- a/.github/scripts/build-examples.sh +++ b/.github/scripts/build-examples.sh @@ -91,6 +91,14 @@ case "$fpga_family" in esac done ;; + qlf_k4n8) for example in $examples; do + case $example in + "counter") tuttest_exec ${snippets} qlf_k4n8/btn_counter/README.rst:qlf_k4n8-counter ;; + *) echo "ERROR: Unknown example name: $example" >&2 + exit 1 ;; + esac + done + ;; *) echo "ERROR: Unknown fpga_family: $fpga_family" >&2 exit 1 ;; diff --git a/.github/scripts/generate_job_matrices.py b/.github/scripts/generate_job_matrices.py index 18436d0..6a481f2 100755 --- a/.github/scripts/generate_job_matrices.py +++ b/.github/scripts/generate_job_matrices.py @@ -105,6 +105,16 @@ def get_jobs( 'surelog': "-parse -DSYNTHESIS" if usesSurelog else "" } for osver in osvers]) + jobs.extend([{ + 'name': "Surelog" if usesSurelog else "Default", + 'runs-on': runs_on, + 'fpga-fam': "qlf_k4n8", + 'os': osver[0], + 'os-version': osver[1], + 'example': "counter", + 'surelog': "-parse -DSYNTHESIS" if usesSurelog else "" + } for osver in osvers]) + return jobs for distribution in ['debian', 'ubuntu', 'fedora', 'centos']: