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:
|
on:
|
||||||
workflow_run:
|
workflow_run:
|
||||||
@ -30,7 +30,7 @@ jobs:
|
|||||||
PR_NUMBER=$(basename "${CODE_SIZE_REPORT}" .md)
|
PR_NUMBER=$(basename "${CODE_SIZE_REPORT}" .md)
|
||||||
echo "Pull Request Number: $PR_NUMBER"
|
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
|
if [ -s "${CODE_SIZE_REPORT}" ]; then
|
||||||
echo "pr_number=${PR_NUMBER}" >> $GITHUB_OUTPUT
|
echo "pr_number=${PR_NUMBER}" >> $GITHUB_OUTPUT
|
||||||
echo "code_size_report=${CODE_SIZE_REPORT}" >> $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
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
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
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- name: '⏳ Checkout repository'
|
- name: '⏳ Checkout repository'
|
||||||
@ -114,20 +114,17 @@ jobs:
|
|||||||
out-file-path: 'old_firmware'
|
out-file-path: 'old_firmware'
|
||||||
|
|
||||||
- name: '📝 Generate report'
|
- name: '📝 Generate report'
|
||||||
id: generate_report
|
run: |
|
||||||
CODE_SIZE_REPORT=${{ github.event.pull_request.number }}.md
|
TOOLCHAIN_PATH=${HOME}/cache/gcc
|
||||||
python tools/code_size.py > ${GITHUB_WORKSPACE}/${CODE_SIZE_REPORT}
|
export PATH=${TOOLCHAIN_PATH}/bin:${PATH}
|
||||||
if [ -s ${GITHUB_WORKSPACE}/${CODE_SIZE_REPORT} ]; then
|
python tools/code_size.py > ${GITHUB_WORKSPACE}/${{ github.event.pull_request.number }}.md
|
||||||
echo "code_size_report=${CODE_SIZE_REPORT}" >> $GITHUB_OUTPUT
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: '⬆ Upload report'
|
- name: '⬆ Upload report'
|
||||||
if: steps.generate_report.outputs.code_size_report != ''
|
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
overwrite: true
|
overwrite: true
|
||||||
name: code-size-report
|
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
|
if-no-files-found: error
|
||||||
|
|
||||||
stable-release:
|
stable-release:
|
||||||
|
Loading…
Reference in New Issue
Block a user