From a993adb5859a7aef7a9f4ba15d9b5d289c20bb62 Mon Sep 17 00:00:00 2001 From: Shihab Suliman Date: Mon, 13 May 2024 16:50:36 +0100 Subject: [PATCH] Fixing job titles, tidying up run commands --- .github/workflows/_test_hdl.yml | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/_test_hdl.yml diff --git a/.github/workflows/_test_hdl.yml b/.github/workflows/_test_hdl.yml new file mode 100644 index 000000000..65f6d7572 --- /dev/null +++ b/.github/workflows/_test_hdl.yml @@ -0,0 +1,36 @@ +on: + workflow_call: + inputs: + matrix: + required: true + type: string + +jobs: + test: + strategy: + fail-fast: false + # Using generated matrix from previous job + matrix: ${{fromJSON(inputs.matrix)}} + runs-on: + group: iris_runners + container: + image: ghcr.io/pandablocks/pandablocks-dev-container:3.1a3 + options: --privileged + + steps: + # Necessary to find action.yml + - name: Checkout Source + uses: actions/checkout@v4 + with: + path: repos/PandABlocks-fpga + fetch-depth: 0 + + - name: Checkout rootfs and Give Directory Perms + uses: ./repos/PandABlocks-fpga/.github/actions/setupenv + + # Run tests + - name: Make hdl Tests + run: | + cd repos/PandABlocks-fpga + ln -s CONFIG.example CONFIG + make hdl_test MODULES="${{matrix.modules}}" \ No newline at end of file