mirror of
https://github.com/eclipse-threadx/threadx.git
synced 2025-11-16 04:24:48 +00:00
Compare commits
11 Commits
3128f18b30
...
d22057ee89
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d22057ee89 | ||
|
|
12dac1d67d | ||
|
|
8616486d99 | ||
|
|
1e109f0c35 | ||
|
|
8e808e70f1 | ||
|
|
48c173cc11 | ||
|
|
c00056bb78 | ||
|
|
acf2e57606 | ||
|
|
754c348568 | ||
|
|
171af05ed1 | ||
|
|
b19b468e13 |
40
.github/workflows/regression_template.yml
vendored
40
.github/workflows/regression_template.yml
vendored
@@ -63,7 +63,7 @@ jobs:
|
|||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the repository
|
- name: Check out the repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4.2.2
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
@@ -86,7 +86,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Upload Test Results
|
- name: Upload Test Results
|
||||||
if: success() || failure()
|
if: success() || failure()
|
||||||
uses: actions/upload-artifact@v4.6.0
|
uses: actions/upload-artifact@v4.6.2
|
||||||
with:
|
with:
|
||||||
name: test_reports ${{ inputs.result_affix }}
|
name: test_reports ${{ inputs.result_affix }}
|
||||||
path: |
|
path: |
|
||||||
@@ -95,7 +95,7 @@ jobs:
|
|||||||
${{ inputs.cmake_path }}/build/**/regression/output_files/*.bin
|
${{ inputs.cmake_path }}/build/**/regression/output_files/*.bin
|
||||||
|
|
||||||
- name: Configure GitHub Pages
|
- name: Configure GitHub Pages
|
||||||
uses: actions/configure-pages@v3.0.6
|
uses: actions/configure-pages@v5.0.0
|
||||||
|
|
||||||
- name: Generate Code Coverage Results Summary
|
- name: Generate Code Coverage Results Summary
|
||||||
if: (!inputs.skip_coverage)
|
if: (!inputs.skip_coverage)
|
||||||
@@ -115,7 +115,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Create CheckRun for Code Coverage
|
- name: Create CheckRun for Code Coverage
|
||||||
if: ((github.event_name == 'push') || (github.event_name == 'workflow_dispatch') || (github.event.pull_request.head.repo.full_name == github.repository)) && (!inputs.skip_coverage)
|
if: ((github.event_name == 'push') || (github.event_name == 'workflow_dispatch') || (github.event.pull_request.head.repo.full_name == github.repository)) && (!inputs.skip_coverage)
|
||||||
uses: LouisBrunner/checks-action@v1.6.2
|
uses: LouisBrunner/checks-action@v2.0.0
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
name: Code Coverage ${{ inputs.result_affix }}
|
name: Code Coverage ${{ inputs.result_affix }}
|
||||||
@@ -126,7 +126,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Add Code Coverage PR Comment
|
- name: Add Code Coverage PR Comment
|
||||||
if: ((github.event_name == 'push') || (github.event.pull_request.head.repo.full_name == github.repository)) && (!inputs.skip_coverage)
|
if: ((github.event_name == 'push') || (github.event.pull_request.head.repo.full_name == github.repository)) && (!inputs.skip_coverage)
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v2.9.4
|
||||||
with:
|
with:
|
||||||
header: Code Coverage ${{ inputs.result_affix }}
|
header: Code Coverage ${{ inputs.result_affix }}
|
||||||
path: code-coverage-results.md
|
path: code-coverage-results.md
|
||||||
@@ -139,17 +139,22 @@ jobs:
|
|||||||
sudo mv ${{ inputs.cmake_path }}/coverage_report/${{ inputs.coverage_name }} \
|
sudo mv ${{ inputs.cmake_path }}/coverage_report/${{ inputs.coverage_name }} \
|
||||||
${{ inputs.cmake_path }}/coverage_report/${{ inputs.result_affix }}
|
${{ inputs.cmake_path }}/coverage_report/${{ inputs.result_affix }}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
- name: Coverage Report name
|
||||||
|
id: artifact
|
||||||
|
if: (!inputs.skip_coverage)
|
||||||
|
run: echo "coverage_report=coverage_report-$(date +%s)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload Code Coverage Artifacts
|
- name: Upload Code Coverage Artifacts
|
||||||
uses: actions/upload-artifact@v4.6.0
|
uses: actions/upload-artifact@v4.6.2
|
||||||
if: (inputs.skip_deploy && !inputs.skip_coverage)
|
if: (inputs.skip_deploy && !inputs.skip_coverage)
|
||||||
with:
|
with:
|
||||||
name: coverage_report
|
name: ${{ steps.artifact.outputs.coverage_report }}
|
||||||
path: ${{ inputs.cmake_path }}/coverage_report
|
path: ${{ inputs.cmake_path }}/coverage_report
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
- name: Upload Code Coverage Pages
|
- name: Upload Code Coverage Pages
|
||||||
uses: actions/upload-pages-artifact@v2.0.0
|
uses: actions/upload-pages-artifact@v3.0.1
|
||||||
if: (!inputs.skip_deploy && !inputs.skip_coverage)
|
if: (!inputs.skip_deploy && !inputs.skip_coverage)
|
||||||
with:
|
with:
|
||||||
path: ${{ inputs.cmake_path }}/coverage_report/${{ inputs.coverage_name }}
|
path: ${{ inputs.cmake_path }}/coverage_report/${{ inputs.coverage_name }}
|
||||||
@@ -166,25 +171,26 @@ jobs:
|
|||||||
id-token: write
|
id-token: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/download-artifact@v4.1.7
|
- uses: actions/download-artifact@v4.3.0
|
||||||
if: ${{ inputs.skip_test }}
|
if: ${{ inputs.skip_test }}
|
||||||
with:
|
with:
|
||||||
name: coverage_report
|
name: ${{ steps.artifact.outputs.coverage_report }}
|
||||||
|
path: ${{ inputs.cmake_path }}/coverage_report
|
||||||
|
|
||||||
- name: Upload Code Coverage Pages
|
- name: Upload Code Coverage Pages
|
||||||
uses: actions/upload-pages-artifact@v2.0.0
|
uses: actions/upload-pages-artifact@v3.0.1
|
||||||
if: ${{ inputs.skip_test }}
|
if: ${{ inputs.skip_test }}
|
||||||
with:
|
with:
|
||||||
path: .
|
path: .
|
||||||
|
|
||||||
- name: Delete Duplicate Code Coverage Artifact
|
- name: Delete Duplicate Code Coverage Artifact
|
||||||
uses: geekyeggo/delete-artifact@v2
|
uses: geekyeggo/delete-artifact@v5.1.0
|
||||||
with:
|
with:
|
||||||
name: coverage_report
|
name: coverage_report
|
||||||
|
|
||||||
- name: Deploy GitHub Pages site
|
- name: Deploy GitHub Pages site
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v1.2.9
|
uses: actions/deploy-pages@v4.0.5
|
||||||
|
|
||||||
- name: Write Code Coverage Report URL
|
- name: Write Code Coverage Report URL
|
||||||
run: >-
|
run: >-
|
||||||
|
|||||||
21
.github/workflows/regression_test.yml
vendored
21
.github/workflows/regression_test.yml
vendored
@@ -12,6 +12,13 @@ on:
|
|||||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
jobs:
|
jobs:
|
||||||
tx:
|
tx:
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
issues: read
|
||||||
|
checks: write
|
||||||
|
pull-requests: write
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
uses: ./.github/workflows/regression_template.yml
|
uses: ./.github/workflows/regression_template.yml
|
||||||
with:
|
with:
|
||||||
build_script: ./scripts/build_tx.sh
|
build_script: ./scripts/build_tx.sh
|
||||||
@@ -20,6 +27,13 @@ jobs:
|
|||||||
result_affix: ThreadX
|
result_affix: ThreadX
|
||||||
skip_deploy: true
|
skip_deploy: true
|
||||||
smp:
|
smp:
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
issues: read
|
||||||
|
checks: write
|
||||||
|
pull-requests: write
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
uses: ./.github/workflows/regression_template.yml
|
uses: ./.github/workflows/regression_template.yml
|
||||||
with:
|
with:
|
||||||
build_script: ./scripts/build_smp.sh
|
build_script: ./scripts/build_smp.sh
|
||||||
@@ -28,6 +42,13 @@ jobs:
|
|||||||
result_affix: SMP
|
result_affix: SMP
|
||||||
skip_deploy: true
|
skip_deploy: true
|
||||||
deploy:
|
deploy:
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
issues: read
|
||||||
|
checks: write
|
||||||
|
pull-requests: write
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
needs: [tx, smp]
|
needs: [tx, smp]
|
||||||
uses: ./.github/workflows/regression_template.yml
|
uses: ./.github/workflows/regression_template.yml
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user