From 5442e90336ebfceadbc0b6c88a76d69510f7cd73 Mon Sep 17 00:00:00 2001 From: Daniel Jobson Date: Tue, 9 Jul 2024 10:59:27 +0200 Subject: [PATCH] CI: add build of fpga with SPI-master --- .github/workflows/ci.yaml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 557fac6..3eff91e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,4 +1,3 @@ - name: ci on: @@ -85,6 +84,26 @@ jobs: working-directory: hw/boards/tp1/firmware run: ./build.sh + build-spi-bitstream: + runs-on: ubuntu-latest + container: + image: ghcr.io/tillitis/tkey-builder:4 + steps: + - name: checkout + uses: actions/checkout@v4 + with: + # fetch-depth: 0 + persist-credentials: false + + - name: fix + # https://github.com/actions/runner-images/issues/6775 + run: | + git config --global --add safe.directory "$GITHUB_WORKSPACE" + + - name: make application FPGA with SPI master + working-directory: hw/application_fpga + run: make application_fpga.bin YOSYS_FLAG=-DINCLUDE_SPI_MASTER + build-bitstream: outputs: commit_sha: ${{ github.sha }}