mirror of
https://github.com/openmv/openmv.git
synced 2025-09-26 23:09:13 +08:00
misc/github: Fix workflows.
This commit is contained in:
parent
6beb16d3a8
commit
9969bcd1bc
4
.github/workflows/code-size-report.yml
vendored
4
.github/workflows/code-size-report.yml
vendored
@ -1,4 +1,4 @@
|
||||
name: '📝 Code Report'
|
||||
name: '📝 Code Size Report'
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
@ -30,7 +30,7 @@ jobs:
|
||||
PR_NUMBER=$(basename "${CODE_SIZE_REPORT}" .md)
|
||||
echo "Pull Request Number: $PR_NUMBER"
|
||||
|
||||
# If the report file is not empty set a flag for the next step.
|
||||
# Set the outputs for the following step
|
||||
if [ -s "${CODE_SIZE_REPORT}" ]; then
|
||||
echo "pr_number=${PR_NUMBER}" >> $GITHUB_OUTPUT
|
||||
echo "code_size_report=${CODE_SIZE_REPORT}" >> $GITHUB_OUTPUT
|
||||
|
15
.github/workflows/firmware.yml
vendored
15
.github/workflows/firmware.yml
vendored
@ -28,7 +28,7 @@ jobs:
|
||||
runs-on: ubuntu-22.04
|
||||
strategy:
|
||||
matrix:
|
||||
target: [OPENMV3]
|
||||
target: [OPENMV2, OPENMV3, OPENMV4, OPENMV4P, OPENMVPT, OPENMV_RT1060, ARDUINO_PORTENTA_H7, ARDUINO_GIGA, ARDUINO_NICLA_VISION, ARDUINO_NANO_RP2040_CONNECT, ARDUINO_NANO_33_BLE_SENSE]
|
||||
fail-fast: false
|
||||
steps:
|
||||
- name: '⏳ Checkout repository'
|
||||
@ -114,20 +114,17 @@ jobs:
|
||||
out-file-path: 'old_firmware'
|
||||
|
||||
- name: '📝 Generate report'
|
||||
id: generate_report
|
||||
CODE_SIZE_REPORT=${{ github.event.pull_request.number }}.md
|
||||
python tools/code_size.py > ${GITHUB_WORKSPACE}/${CODE_SIZE_REPORT}
|
||||
if [ -s ${GITHUB_WORKSPACE}/${CODE_SIZE_REPORT} ]; then
|
||||
echo "code_size_report=${CODE_SIZE_REPORT}" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
run: |
|
||||
TOOLCHAIN_PATH=${HOME}/cache/gcc
|
||||
export PATH=${TOOLCHAIN_PATH}/bin:${PATH}
|
||||
python tools/code_size.py > ${GITHUB_WORKSPACE}/${{ github.event.pull_request.number }}.md
|
||||
|
||||
- name: '⬆ Upload report'
|
||||
if: steps.generate_report.outputs.code_size_report != ''
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
overwrite: true
|
||||
name: code-size-report
|
||||
path: ${{ github.workspace }}/${{ steps.generate_report.outputs.code_size_report }}
|
||||
path: ${{ github.event.pull_request.number }}.md
|
||||
if-no-files-found: error
|
||||
|
||||
stable-release:
|
||||
|
Loading…
Reference in New Issue
Block a user