mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-06 09:10:50 +02:00
e38c88daf3
Use unique concurrency group per commit for push events so that sequential merges to master don't cancel each other's queued runs. This ensures every master commit gets analyzed for memory tracking.
59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
name: Membrowse Memory Report
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event_name == 'push' && github.sha || github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
|
|
|
jobs:
|
|
load-targets:
|
|
runs-on: ubuntu-24.04
|
|
outputs:
|
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Load target matrix
|
|
id: set-matrix
|
|
run: echo "matrix=$(jq -c '.' .github/membrowse-targets.json)" >> $GITHUB_OUTPUT
|
|
|
|
analyze:
|
|
needs: load-targets
|
|
runs-on: ubuntu-24.04
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include: ${{ fromJson(needs.load-targets.outputs.matrix) }}
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
submodules: recursive
|
|
|
|
- name: Install packages
|
|
run: ${{ matrix.setup_cmd }}
|
|
|
|
- name: Build firmware
|
|
run: ${{ matrix.build_cmd }}
|
|
|
|
- name: Run Membrowse PR Action
|
|
id: analyze
|
|
uses: membrowse/membrowse-action@v1
|
|
with:
|
|
target_name: ${{ matrix.target_name }}
|
|
elf: ${{ matrix.elf }}
|
|
ld: ${{ matrix.ld }}
|
|
linker_vars: ${{ matrix.linker_vars }}
|
|
api_key: ${{ secrets.MEMBROWSE_API_KEY }}
|
|
api_url: ${{ vars.MEMBROWSE_API_URL }}
|
|
verbose: INFO
|
|
|