Skip to content

Commit

Permalink
Prefix uploaded artifact with sim status
Browse files Browse the repository at this point in the history
  • Loading branch information
kareefardi committed Apr 29, 2024
1 parent 9741588 commit 39075e5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/run_IP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ jobs:
make run_$test SIM_TAG=${{ matrix.tests.tag }} BUS_TYPE=${{ matrix.tests.bus }}
done
- name: Check Test Results
id: check_results
shell: bash
working-directory: ${{ env.WORKING_DIRECTORY }}
run: |
Expand All @@ -129,12 +130,15 @@ jobs:
if [ "$passed_count" -eq 0 ]; then
echo "Error: No passed test results found"
echo "result=fail" >> $GITHUB_OUTPUT
exit 1
elif [ "$failed_count" -ne 0 ] || [ "$unknown_count" -ne 0 ]; then
echo "Error: There are failed or unknown test results"
echo "result=fail" >> $GITHUB_OUTPUT
exit 1
else
echo "All tests passed successfully"
echo "result=success" >> $GITHUB_OUTPUT
fi
- name: Save IP Commit Hash
if: always()
Expand All @@ -155,5 +159,5 @@ jobs:
uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ inputs.name }}-${{ matrix.tests.bus }}-${{ matrix.tests.test }}-sim
name: ${{ steps.check_results.outputs.result }}-${{ inputs.name }}-${{ matrix.tests.bus }}-${{ matrix.tests.test }}-sim
path: ${{ env.WORKING_DIRECTORY }}/*.tar.gz

0 comments on commit 39075e5

Please sign in to comment.