Added mirror function #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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@v5 | |
| with: | |
| fetch-depth: 0 | |
| - 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 }} |