Skip to content

Commit

Permalink
Add commit-hashes to the other Artifact upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kareefardi committed Apr 18, 2024
1 parent 6efc10e commit a3721c4
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/run_IP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
shell: bash
run: |
echo "WORKING_DIRECTORY=/home/runner/work/${{ inputs.name }}/verify/uvm-python" >> $GITHUB_ENV
echo "SIM_DIRECTORY=/home/runner/work/${{ inputs.name }}/verify/uvm-python/sim" >> $GITHUB_ENV
- name: Check out repository code
uses: actions/checkout@v4
- name: Setup OpenLane
Expand All @@ -65,17 +66,13 @@ jobs:
echo "Running Test $test"
make run_$test SIM_TAG=${{ matrix.tests.tag }} BUS_TYPE=${{ matrix.tests.bus }}
done
- name: Tar Test Logs
shell: bash
working-directory: ${{ env.WORKING_DIRECTORY }}
run: tar -czf sim.tar.gz sim
- name: Check Test Results
shell: bash
working-directory: ${{ env.WORKING_DIRECTORY }}
run: |
passed_count=$(find sim/* -type f -name 'passed' | wc -l)
failed_count=$(find sim/* -type f -name 'failed' | wc -l)
unknown_count=$(find sim/* -type f -name 'unknown' | wc -l)
passed_count=$(find ${{ env.SIM_DIRECTORY }}/* -type f -name 'passed' | wc -l)
failed_count=$(find ${{ env.SIM_DIRECTORY }}/* -type f -name 'failed' | wc -l)
unknown_count=$(find ${{ env.SIM_DIRECTORY }}/* -type f -name 'unknown' | wc -l)
echo "Passed: $passed_count"
echo "Failed: $failed_count"
Expand All @@ -94,18 +91,16 @@ jobs:
if: always()
shell: bash
working-directory: ${{ env.WORKING_DIRECTORY }}
run: git rev-parse --verify HEAD > /tmp/ip-commit-hash.txt
run: git rev-parse --verify HEAD > ${{ env.SIM_DIRECTORY }}/ip-commit-hash.txt
- name: Save EF_UVM Commit Hash
if: always()
shell: bash
run: git rev-parse --verify HEAD > /tmp/EF_UVM-commit-hash.txt
- name: Upload Commit Hashes
uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ inputs.name }}-${{ matrix.tests.bus }}-${{ matrix.tests.test }}-commit-hashes
path: /tmp/*hash.txt
- name: Upload Logs and Artifact
run: git rev-parse --verify HEAD > ${{ env.SIM_DIRECTORY }}/EF_UVM-commit-hash.txt
- name: Tar Sim Directory
shell: bash
working-directory: ${{ env.WORKING_DIRECTORY }}
run: tar -czf sim.tar.gz sim
- name: Upload Logs and Artifacts
uses: actions/upload-artifact@v4
if: always()
with:
Expand Down

0 comments on commit a3721c4

Please sign in to comment.