From e5dca62204d9bc8dad8cfee751dd9f33c359a8be Mon Sep 17 00:00:00 2001 From: Lucian Petrica Date: Fri, 6 Jun 2025 21:25:59 +0100 Subject: [PATCH 1/3] Add CI test for driver and linker build --- .github/workflows/ci-build-sw | 46 +++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/ci-build-sw diff --git a/.github/workflows/ci-build-sw b/.github/workflows/ci-build-sw new file mode 100644 index 00000000..6fe7896a --- /dev/null +++ b/.github/workflows/ci-build-sw @@ -0,0 +1,46 @@ +# ################################################################################################## +# The MIT License (MIT) +# Copyright (c) 2025 Advanced Micro Devices, Inc. All rights reserved. +# +# Permission is hereby granted, free of charge, to any person obtaining a copy of this software +# and associated documentation files (the "Software"), to deal in the Software without restriction, +# including without limitation the rights to use, copy, modify, merge, publish, distribute, +# sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in all copies or +# substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT +# NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# ################################################################################################## + +name: CI Build SW + +on: + pull_request: + +jobs: + build: + runs-on: ubuntu-22.04 + permissions: { contents: read } + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install build tools + run: | + sudo apt-get update -qq + sudo apt-get install -y build-essential linux-headers-$(uname -r) libxml2-dev libzmq3-dev libjsoncpp-dev + + - name: Build hotplug driver + run: | + cd ${{ github.workspace }}/submodules/pcie-hotplug-drv/ && make + + - name: Build linker + run: | + cd ${{ github.workspace }}/submodules/v80-vitis-flow && cmake . && make From 484a45c4c056272bf55e8df7c847f391033b5c19 Mon Sep 17 00:00:00 2001 From: Lucian Petrica Date: Fri, 6 Jun 2025 21:29:11 +0100 Subject: [PATCH 2/3] Fix extension --- .github/workflows/{ci-build-sw => ci-build-sw.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{ci-build-sw => ci-build-sw.yml} (100%) diff --git a/.github/workflows/ci-build-sw b/.github/workflows/ci-build-sw.yml similarity index 100% rename from .github/workflows/ci-build-sw rename to .github/workflows/ci-build-sw.yml From 0c9158ba607a79a1e0f68076749e00f348e52cdd Mon Sep 17 00:00:00 2001 From: Lucian Petrica Date: Thu, 12 Jun 2025 21:21:36 +0100 Subject: [PATCH 3/3] Disable driver build in github runner --- .github/workflows/ci-build-sw.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci-build-sw.yml b/.github/workflows/ci-build-sw.yml index 6fe7896a..3fd5f6e1 100644 --- a/.github/workflows/ci-build-sw.yml +++ b/.github/workflows/ci-build-sw.yml @@ -38,6 +38,7 @@ jobs: sudo apt-get install -y build-essential linux-headers-$(uname -r) libxml2-dev libzmq3-dev libjsoncpp-dev - name: Build hotplug driver + if: ${{ false }} run: | cd ${{ github.workspace }}/submodules/pcie-hotplug-drv/ && make