Skip to content

[v2.1.1] final commit. #30

[v2.1.1] final commit.

[v2.1.1] final commit. #30

name: Membrowse Memory Report
on:
pull_request:
push:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
# Fetch the base branch so diff tools can see history before the PR
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Fetch base branch for PRs
if: github.event_name == 'pull_request'
run: git fetch origin ${{ github.base_ref }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install PlatformIO
run: |
python -m pip install --upgrade pip
pip install platformio
- name: Build firmware
run: pio run -e esp32dev
- name: Run Membrowse PR Action
id: analyze
continue-on-error: true
uses: membrowse/membrowse-action@v1
with:
target_name: esp32dev
elf: .pio/build/esp32dev/firmware.elf
ld: /home/runner/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/ld/memory.ld
api_key: ${{ secrets.MEMBROWSE_API_KEY }}
- name: Upload report artifact
if: ${{ steps.analyze.outcome == 'success' }}
uses: actions/upload-artifact@v4
with:
name: membrowse-report-esp32dev
path: ${{ steps.analyze.outputs.report_path }}