Skip to content

Commit

Permalink
create sqa workflow, modify generate-and-build to take config paramet…
Browse files Browse the repository at this point in the history
…er, and skip push to artifactory if running sqa workflow
  • Loading branch information
stefan-silabs committed Jan 15, 2025
1 parent 5a6a7b3 commit 61cd127
Show file tree
Hide file tree
Showing 2 changed files with 384 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/generate-and-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ on:
family:
required: true
type: string
configs:
required: false
type: string
addAppComponent:
required: false
type: string
Expand Down Expand Up @@ -80,6 +83,10 @@ jobs:
if: ${{ inputs.removeAppComponent != '' }}
run: echo "REMOVE_APP_COMPONENT_STRING=--without ${{ inputs.removeAppComponent }}" >> $GITHUB_ENV

- name: Create string out of configs
if: ${{ inputs.configs != '' }}
run: echo "CONFIGS=--configuration ${{ inputs.configs }}" >> $GITHUB_ENV

- name: Create string out of additional bootloader components
if: ${{ inputs.addBlComponent != '' }}
run: echo "ADD_Bl_COMPONENT_STRING=${ADD_BL_COMPONENT_STRING},${{ inputs.addBlComponent }}" >> $GITHUB_ENV
Expand All @@ -104,20 +111,22 @@ jobs:

- name: SLC Generate Application
run: |
slc generate --daemon -d ${MATTER_EXTN_ROOT}/${{ inputs.board }}/${{ inputs.app }}-${{ inputs.suffix }} -w $MATTER_EXTN_ROOT/slc/workspaces/${{ inputs.app }}/${{ inputs.family }}/${WORKSPACE_PATH}.slcw -pids application ${ADD_APP_COMPONENT_STRING} ${REMOVE_APP_COMPONENT_STRING} --generator-timeout=180
slc generate --daemon -d ${MATTER_EXTN_ROOT}/${{ inputs.board }}/${{ inputs.app }}-${{ inputs.suffix }} -w $MATTER_EXTN_ROOT/slc/workspaces/${{ inputs.app }}/${{ inputs.family }}/${WORKSPACE_PATH}.slcw -pids application ${ADD_APP_COMPONENT_STRING} ${REMOVE_APP_COMPONENT_STRING} ${CONFIGS} --generator-timeout=180
- name: SLC Generate Bootloader
# 917 Solutions don't have a bootloader
if: ${{ inputs.board != 'brd4338a' && inputs.board != 'brd4342a' }}
run: slc generate --daemon -d ${MATTER_EXTN_ROOT}/${{ inputs.board }}/${{ inputs.app }}-${{ inputs.suffix }} -w $MATTER_EXTN_ROOT/slc/workspaces/${{ inputs.app }}/${{ inputs.family }}/${WORKSPACE_PATH}.slcw -pids bootloader ${ADD_BL_COMPONENT_STRING} ${REMOVE_BL_COMPONENT_STRING} --generator-timeout=180
run: slc generate --daemon -d ${MATTER_EXTN_ROOT}/${{ inputs.board }}/${{ inputs.app }}-${{ inputs.suffix }} -w $MATTER_EXTN_ROOT/slc/workspaces/${{ inputs.app }}/${{ inputs.family }}/${WORKSPACE_PATH}.slcw -pids bootloader ${ADD_BL_COMPONENT_STRING} ${REMOVE_BL_COMPONENT_STRING} ${CONFIGS} --generator-timeout=180

- name: Build
run: |
export ARM_GCC_DIR=${{ env.ARM_GCC_DIR }}
export POST_BUILD_EXE=${{ env.POST_BUILD_EXE }}
make all -C ${MATTER_EXTN_ROOT}/${{ inputs.board }}/${{ inputs.app }}-${{ inputs.suffix }} -f ${WORKSPACE_PATH}.solution.Makefile -j8
- uses: actions/upload-artifact@v4
- name: Upload Artifactory
if: env.WORKFLOW_NAME != "SQA Build"
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.addAppComponent }} ${{ inputs.optionalSlcParams }} ${{ inputs.app }}-${{ inputs.suffix }} ${{ inputs.board }}
path: ${{ env.MATTER_EXTN_ROOT }}/${{ inputs.board }}/${{ inputs.app }}-${{ inputs.suffix }}/${{ inputs.app }}-${{ inputs.suffix }}/build/debug/${{ inputs.app }}-${{ inputs.suffix }}.s37
Expand Down
Loading

0 comments on commit 61cd127

Please sign in to comment.