Skip to content

Commit

Permalink
Add affix to artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
TiejunMS committed Nov 23, 2023
1 parent d532028 commit 51bcf8e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/regression_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
if: success() || failure()
uses: actions/upload-artifact@v3.1.3
with:
name: test_reports
name: test_reports${{ inputs.deploy_url_affix }}
path: |
${{ inputs.cmake_path }}/build/*.txt
${{ inputs.cmake_path }}/build/*/Testing/**/*.xml
Expand Down Expand Up @@ -122,14 +122,15 @@ jobs:
uses: actions/upload-pages-artifact@v2.0.0
with:
path: ${{ inputs.cmake_path }}/coverage_report
name: coverage_report${{ inputs.deploy_url_affix }}

deploy_code_coverage:
runs-on: ubuntu-latest
if: github.event_name == 'push'
needs: run_tests
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
url: ${{ steps.deployment.outputs.page_url }}/default_build_coverage${{ inputs.deploy_url_affix }}
permissions:
pages: write
id-token: write
Expand All @@ -138,6 +139,8 @@ jobs:
- name: Deploy GitHub Pages site
id: deployment
uses: actions/deploy-pages@v1.2.9
with:
artifact_name: coverage_report${{ inputs.deploy_url_affix }}

- name: Write Code Coverage Report URL
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/regression_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
build_script: ./scripts/build_tx.sh
test_script: ./scripts/test_tx.sh
cmake_path: ./test/tx/cmake
deploy_url_affix: _tx/
deploy_url_affix: _tx
result_affix: ThreadX
tx_smp:
uses: ./.github/workflows/regression_template.yml
with:
build_script: ./scripts/build_smp.sh
test_script: ./scripts/test_smp.sh
cmake_path: ./test/smp/cmake
deploy_url_affix: _smp/
deploy_url_affix: _smp
result_affix: SMP

0 comments on commit 51bcf8e

Please sign in to comment.