Skip to content

Commit

Permalink
Merge pull request #78 from per1234/artifact-pattern
Browse files Browse the repository at this point in the history
Add pattern matching support for sketches report artifact names
  • Loading branch information
per1234 authored Jan 22, 2024
2 parents c387258 + 2251c6c commit e9c0345
Show file tree
Hide file tree
Showing 32 changed files with 2,715 additions and 130 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/test-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ jobs:
permissions:
pull-requests: write

strategy:
fail-fast: false
matrix:
test-data:
- multiple-folders
- single-folder

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -46,7 +53,7 @@ jobs:
github.triggering_actor == 'dependabot[bot]'
}}
with:
sketches-reports-source: .github/workflows/testdata/sketches-reports
sketches-reports-source: .github/workflows/testdata/local-source/${{ matrix.test-data }}

artifact-source:
if: github.event_name != 'pull_request'
Expand All @@ -65,3 +72,5 @@ jobs:
continue-on-error: ${{ github.triggering_actor == 'dependabot[bot]' }}
# Use arduino/report-size-deltas action from local path
uses: ./
with:
sketches-reports-source: ^sketches-report-.+
Original file line number Diff line number Diff line change
@@ -0,0 +1,245 @@
{
"commit_hash": "0123456789abcdef0123456789abcdef01234567",
"commit_url": "https://github.com/per1234/generate-size-deltas-report/commit/651f05f4d4aca30ac359e972c01568f873112d43",
"boards": [
{
"board": "arduino:avr:leonardo",
"sketches": [
{
"name": "examples/MIDIUSB_clock",
"compilation_success": true,
"sizes": [
{
"name": "flash",
"maximum": 28672,
"current": {
"absolute": 4792,
"relative": 16.71
},
"previous": {
"absolute": 4792,
"relative": 16.71
},
"delta": {
"absolute": 0,
"relative": 0.0
}
},
{
"name": "RAM for global variables",
"maximum": 2560,
"current": {
"absolute": 443,
"relative": 17.3
},
"previous": {
"absolute": 443,
"relative": 17.3
},
"delta": {
"absolute": 0,
"relative": 0.0
}
}
],
"warnings": {
"current": {
"absolute": 2
},
"previous": {
"absolute": 2
},
"delta": {
"absolute": 0
}
}
},
{
"name": "examples/MIDIUSB_loop",
"compilation_success": true,
"sizes": [
{
"name": "flash",
"maximum": 28672,
"current": {
"absolute": 4870,
"relative": 16.99
},
"previous": {
"absolute": 4870,
"relative": 16.99
},
"delta": {
"absolute": 0,
"relative": 0.0
}
},
{
"name": "RAM for global variables",
"maximum": 2560,
"current": {
"absolute": 441,
"relative": 17.23
},
"previous": {
"absolute": 441,
"relative": 17.23
},
"delta": {
"absolute": 0,
"relative": 0.0
}
}
],
"warnings": {
"current": {
"absolute": 3
},
"previous": {
"absolute": 3
},
"delta": {
"absolute": 0
}
}
},
{
"name": "examples/MIDIUSB_read",
"compilation_success": true,
"sizes": [
{
"name": "flash",
"maximum": 28672,
"current": {
"absolute": 4908,
"relative": 17.12
},
"previous": {
"absolute": 4908,
"relative": 17.12
},
"delta": {
"absolute": 0,
"relative": 0.0
}
},
{
"name": "RAM for global variables",
"maximum": 2560,
"current": {
"absolute": 457,
"relative": 17.85
},
"previous": {
"absolute": 457,
"relative": 17.85
},
"delta": {
"absolute": 0,
"relative": 0.0
}
}
],
"warnings": {
"current": {
"absolute": 3
},
"previous": {
"absolute": 3
},
"delta": {
"absolute": 0
}
}
},
{
"name": "examples/MIDIUSB_write",
"compilation_success": true,
"sizes": [
{
"name": "flash",
"maximum": 28672,
"current": {
"absolute": 4524,
"relative": 15.78
},
"previous": {
"absolute": 4564,
"relative": 15.92
},
"delta": {
"absolute": -40,
"relative": -0.14
}
},
{
"name": "RAM for global variables",
"maximum": 2560,
"current": {
"absolute": 197,
"relative": 7.7
},
"previous": {
"absolute": 213,
"relative": 8.32
},
"delta": {
"absolute": -16,
"relative": -0.62
}
}
],
"warnings": {
"current": {
"absolute": 3
},
"previous": {
"absolute": 3
},
"delta": {
"absolute": 0
}
}
}
],
"sizes": [
{
"name": "flash",
"maximum": 28672,
"delta": {
"absolute": {
"minimum": -40,
"maximum": 0
},
"relative": {
"minimum": -0.14,
"maximum": 0.0
}
}
},
{
"name": "RAM for global variables",
"maximum": 2560,
"delta": {
"absolute": {
"minimum": -16,
"maximum": 0
},
"relative": {
"minimum": -0.62,
"maximum": 0.0
}
}
}
],
"warnings": {
"delta": {
"absolute": {
"minimum": 0,
"maximum": 0
}
}
}
}
]
}
Loading

0 comments on commit e9c0345

Please sign in to comment.