Skip to content

fixup! fixup! fixup! ci(comment): make workflow reusable #69

fixup! fixup! fixup! ci(comment): make workflow reusable

fixup! fixup! fixup! ci(comment): make workflow reusable #69

Workflow file for this run

---
name: "build"
on: # yamllint disable-line rule:truthy
push:
branches: [master]
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
collect:
name: Collect DEVFAMILY and OS combinations
runs-on: ubuntu-latest
container:
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
options: --entrypoint /bin/bash
outputs:
build-matrix: "${{ steps.matrix.outputs.matrix }}"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Create build matrix
id: matrix
run: |
./bin/build_matrix.py
build:
name: Build
runs-on: ubuntu-latest
container:
image: ghcr.io/texasinstruments/processor-sdk-doc:latest
options: --entrypoint /bin/bash
needs: collect
strategy:
matrix:
include: "${{ fromJSON(needs.collect.outputs.build-matrix) }}"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Add directory to safe dir overrides
run: |
git config --global --add safe.directory "$PWD"
- name: Build ${{ matrix.device }}
env:
DEVFAMILY: ${{ matrix.device }}
OS: ${{ matrix.os }}
run: |
make VERSION=${GITHUB_REF_NAME}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.device }}-${{ matrix.os }}
path: build/
retention-days: 1