Skip to content

Commit

Permalink
save folder, download into sqa-build-binaries directly
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-silabs committed Jan 17, 2025
1 parent 842f67c commit 90d46b4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/generate-and-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,21 +133,23 @@ jobs:
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
# - name: Save Artifact Path
# id: save_artifact_path
# run: echo "ARTIFACT_${{ inputs.appType }}_${{ inputs.board }}_${{ inputs.technology }}_${{ inputs.app }}=${{ inputs.appType }}_${{ inputs.board }}_${{ inputs.technology }}_${{ inputs.app }}" >> $GITHUB_ENV
- name: Create directory and move artifact inside
run: |
FILE_PATH=out/${{ inputs.appType }}/${{ inputs.board }}/${{ inputs.technology }}/${{ inputs.app }}
ARTIFACT=${{ env.MATTER_EXTN_ROOT }}/${{ inputs.board }}/${{ inputs.app }}-${{ inputs.suffix }}/${{ inputs.app }}-${{ inputs.suffix }}/build/debug/${{ inputs.app }}-${{ inputs.suffix }}.s37
mkdir -p $FILE_PATH
mv $ARTIFACT $FILE_PATH
- name: Upload SQA Build Artifact
id: upload_artifact
if: ${{ inputs.workflowName == 'SQA Build' }}
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.appType }}_${{ inputs.board }}_${{ inputs.technology }}_${{ inputs.app }}
path: ${{ env.MATTER_EXTN_ROOT }}/${{ inputs.board }}/${{ inputs.app }}-${{ inputs.suffix }}/${{ inputs.app }}-${{ inputs.suffix }}/build/debug/${{ inputs.app }}-${{ inputs.suffix }}.s37
path: out
- name: Set Output Variables
run: |
echo "artifact_name=${{ inputs.appType }}_${{ inputs.board }}_${{ inputs.technology }}_${{ inputs.app }}" >> $GITHUB_OUTPUT
# echo "artifact_path=sqa-build-binaries/out/${{ inputs.app }}_${{ inputs.board }}_${{ inputs.suffix }}" >> $GITHUB_OUTPUT
- name: Upload Artifactory
if: ${{ inputs.workflowName != 'SQA Build' }}
uses: actions/upload-artifact@v4
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/sqa-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Create SQA Build Binaries Top Folder
run: mkdir -p sqa-build-binaries

- name: Download artifacts into out file
run: |
mkdir -p out
for job in lto; do
gh run download -n ${{ needs[job].outputs.artifact_name }} -D out
gh run download -n ${{ needs[job].outputs.artifact_name }} -D sqa-build-binaries
done
# for artifact in $(printenv | grep ARTIFACT_ | sed 's/.*=//'); do
# echo "Processing artifact: $artifact"
Expand All @@ -59,8 +61,8 @@ jobs:
- name: Debug List Created Directories
run: ls -R out

- name: Create SQA Build Binaries Top Folder
run: mkdir -p sqa-build-binaries
# - name: Create SQA Build Binaries Top Folder
# run: mkdir -p sqa-build-binaries

- name: Move Artifacts to New Folder
run: |
Expand Down

0 comments on commit 90d46b4

Please sign in to comment.