Skip to content

build

build #260

Workflow file for this run

name: build
on:
workflow_dispatch:
inputs:
device:
type: choice
required: true
description: FPGA device
options:
- 10M02SCU169C8G
- 10M04SCU169C8G
- 10M16SCU169C8G
workflow_call:
inputs:
device:
type: string
required: true
description: FPGA device
jobs:
build:
runs-on: ubuntu-latest
container:
image: mbtaylor1982/quartus:22.1
credentials:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_PWD }}
env:
VERSION: ${{ startsWith(github.ref_name, 'v') && github.ref_name || 'v9.9'}}
steps:
- name: Install gencrc
uses: robinraju/release-downloader@v1
with:
repository: 'mbtaylor1982/gencrc'
latest: true
out-file-path: '/usr/local/bin'
fileName: 'gencrc'
- name: add +x permission to gencrc
run: chmod +x /usr/local/bin/gencrc
- name: Checkout repository
uses: actions/checkout@v4
- name: Run compilation flow ${{ inputs.device }}
working-directory: Quartus
run: quartus_sh -t RESDMAC.tcl -device ${{ inputs.device }} -version $VERSION
- name: calcualte file checksums
run: |
sha256sum Quartus/output_files_${{ inputs.device }}/RESDMAC.pof > Quartus/output_files_${{ inputs.device }}/RESDMAC_pof_sha256.txt
gencrc Quartus/output_files_${{ inputs.device }}/resdmac_cfm0_auto.rpd > Quartus/output_files_${{ inputs.device }}/resdmac_cfm0_auto_crc32.txt
- name: Upload Firmware
uses: actions/upload-artifact@v4
with:
name: OutputFiles_${{ inputs.device }}_${{ env.VERSION }}.zip
path: Quartus/output_files_${{ inputs.device }}
retention-days: 14