Skip to content

Commit

Permalink
gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hlefebvr committed Feb 19, 2025
1 parent ee8e59c commit f4a32ba
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,16 @@ jobs:
run: lcov --directory . --capture --output-file coverage__${{ github.job }}__${{ github.run_id }}.info

- name: Hash the string in matrix.test
id: hash
run: |
echo "Hashing: ${{ matrix.test }}"
HASHED_STRING=$(echo -n "${{ matrix.test }}" | sha256sum | awk '{print $1}')
echo "Hashed string: $HASHED_STRING"
echo "::set-output name=hashed_string::$HASHED_STRING"
- uses: actions/upload-artifact@v4
# Upload the artifact using the hashed string as part of the name
- name: Upload coverage with hashed name
uses: actions/upload-artifact@v4
with:
name: coverage__${{ github.job }}__${{ github.run_id }}__${{ steps.hash.outputs.hashed_string }}
path: "coverage__*.info"
Expand Down Expand Up @@ -98,12 +102,15 @@ jobs:
run: lcov --directory . --capture --output-file coverage__${{ github.job }}__${{ github.run_id }}.info

- name: Hash the string in matrix.test
id: hash
run: |
echo "Hashing: ${{ matrix.test }}"
HASHED_STRING=$(echo -n "${{ matrix.test }}" | sha256sum | awk '{print $1}')
echo "Hashed string: $HASHED_STRING"
echo "::set-output name=hashed_string::$HASHED_STRING"
- uses: actions/upload-artifact@v4
- name: Upload coverage with hashed name
uses: actions/upload-artifact@v4
with:
name: coverage__${{ github.job }}__${{ github.run_id }}__${{ steps.hash.outputs.hashed_string }}
path: "coverage__*.info"
Expand Down Expand Up @@ -144,12 +151,15 @@ jobs:
run: lcov --directory . --capture --output-file coverage__${{ github.job }}__${{ github.run_id }}.info

- name: Hash the string in matrix.test
id: hash
run: |
echo "Hashing: ${{ matrix.test }}"
HASHED_STRING=$(echo -n "${{ matrix.test }}" | sha256sum | awk '{print $1}')
echo "Hashed string: $HASHED_STRING"
echo "::set-output name=hashed_string::$HASHED_STRING"
- uses: actions/upload-artifact@v4
- name: Upload coverage with hashed name
uses: actions/upload-artifact@v4
with:
name: coverage__${{ github.job }}__${{ github.run_id }}__${{ steps.hash.outputs.hashed_string }}
path: "coverage__*.info"
Expand Down Expand Up @@ -190,12 +200,15 @@ jobs:
run: lcov --directory . --capture --output-file coverage__${{ github.job }}__${{ github.run_id }}.info

- name: Hash the string in matrix.test
id: hash
run: |
echo "Hashing: ${{ matrix.test }}"
HASHED_STRING=$(echo -n "${{ matrix.test }}" | sha256sum | awk '{print $1}')
echo "Hashed string: $HASHED_STRING"
echo "::set-output name=hashed_string::$HASHED_STRING"
- uses: actions/upload-artifact@v4
- name: Upload coverage with hashed name
uses: actions/upload-artifact@v4
with:
name: coverage__${{ github.job }}__${{ github.run_id }}__${{ steps.hash.outputs.hashed_string }}
path: "coverage__*.info"
Expand Down

0 comments on commit f4a32ba

Please sign in to comment.