mirror of
https://github.com/arduino-libraries/ArduinoHttpClient.git
synced 2025-04-19 21:22:15 +03:00
Revert "Fix regression: report size delta size on PR. (#172)"
This reverts commit 7a6b39a1af31c175c7e999ac366f52b6a3efcba4.
This commit is contained in:
parent
7a6b39a1af
commit
9f01bfe879
27
.github/workflows/compile-examples.yml
vendored
27
.github/workflows/compile-examples.yml
vendored
@ -18,15 +18,14 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
|
|
||||||
env:
|
|
||||||
# It's convenient to set variables for values used multiple times in the workflow.
|
|
||||||
SKETCHES_REPORTS_PATH: sketches-reports
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
compile:
|
build:
|
||||||
name: ${{ matrix.board.fqbn }}
|
name: ${{ matrix.board.fqbn }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
env:
|
||||||
|
SKETCHES_REPORTS_PATH: sketches-reports
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
|
|
||||||
@ -62,21 +61,3 @@ jobs:
|
|||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
path: ${{ env.SKETCHES_REPORTS_PATH }}
|
path: ${{ env.SKETCHES_REPORTS_PATH }}
|
||||||
name: sketches-report-${{ matrix.board.artifact-name-suffix }}
|
name: sketches-report-${{ matrix.board.artifact-name-suffix }}
|
||||||
|
|
||||||
# When using a matrix to compile for multiple boards, it's necessary to use a separate job for the deltas report
|
|
||||||
report:
|
|
||||||
needs: compile # Wait for the compile job to finish to get the data for the report
|
|
||||||
if: github.event_name == 'pull_request' # Only run the job when the workflow is triggered by a pull request
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
# This step is needed to get the size data produced by the compile jobs
|
|
||||||
- name: Download sketches reports artifacts
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
with:
|
|
||||||
# All workflow artifacts will be downloaded to this location.
|
|
||||||
path: ${{ env.SKETCHES_REPORTS_PATH }}
|
|
||||||
|
|
||||||
- uses: arduino/report-size-deltas@v1
|
|
||||||
with:
|
|
||||||
sketches-reports-source: ${{ env.SKETCHES_REPORTS_PATH }}
|
|
||||||
|
24
.github/workflows/report-size-deltas.yml
vendored
Normal file
24
.github/workflows/report-size-deltas.yml
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: Report Size Deltas
|
||||||
|
|
||||||
|
# See: https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- ".github/workflows/report-size-deltas.yml"
|
||||||
|
schedule:
|
||||||
|
# Run at the minimum interval allowed by GitHub Actions.
|
||||||
|
# Note: GitHub Actions periodically has outages which result in workflow failures.
|
||||||
|
# In this event, the workflows will start passing again once the service recovers.
|
||||||
|
- cron: "*/5 * * * *"
|
||||||
|
workflow_dispatch:
|
||||||
|
repository_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
report:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Comment size deltas reports to PRs
|
||||||
|
uses: arduino/report-size-deltas@v1
|
||||||
|
with:
|
||||||
|
# The name of the workflow artifact created by the sketch compilation workflow
|
||||||
|
sketches-reports-source: sketches-reports
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,4 +3,3 @@ examples/node_test_server/node_modules/
|
|||||||
*.DS_Store
|
*.DS_Store
|
||||||
*/.DS_Store
|
*/.DS_Store
|
||||||
examples/.DS_Store
|
examples/.DS_Store
|
||||||
.idea/
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user