Skip to content

Dimos Init (#1065)

Dimos Init (#1065) #36

Workflow file for this run

name: Binary and DBC Generation
on:
push:
paths-ignore:
- 'software/**'
branches:
- master
jobs:
# Build DBC and Binaries
build:
name: Build Firmware Binaries
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
board:
- FSM
- PDM
- BMS
- DCM
- DIM
- f4dev
container:
image: ubcformulaelectric/environment:latest
credentials:
username: ubcformulaelectric
password: ${{ secrets.docker_token }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- uses: ./.github/actions/build_binary
with:
board: ${{ matrix.board }}
# Uploads .elf binary to Github Actions workflow
- name: Save built artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.board }}.elf
path: ${{ env.BUILD_DIR }}/firmware/thruna/${{ matrix.board }}/${{ inputs.board }}.elf
generate-dbc:
name: Call DBC Generation
uses: ./.github/workflows/dbc-gen.yml
secrets:
docker_token: ${{secrets.DOCKER_TOKEN}}
with:
upload_artifact: true
make-release:
name: Add Binaries and DBC to Release Tab
runs-on: ubuntu-22.04
needs: [ build, generate-dbc ]
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
sparse-checkout: .github
- name: Download Binaries and DBC from Artifacts
uses: actions/download-artifact@v3
- name: Create Release
uses: ./.github/actions/push_release
with:
# https://github.com/actions/download-artifact#download-all-artifacts
files: "FSM.elf/FSM.elf BMS.elf/BMS.elf DCM.elf/DCM.elf DIM.elf/DIM.elf PDM.elf/PDM.elf f4dev.elf/f4dev.elf CanMsgs.dbc/CanMsgs.dbc"
latest: true
title: "Stable Binaries and DBCs"
body: "This release contains the latest stable binaries and DBCs."
tag_name: "latest"