Merge pull request #2321 from openmv/workflow_fix

misc/github: Fix workflows.
This commit is contained in:
Ibrahim Abdelkader 2024-07-25 12:22:05 +02:00 committed by GitHub
commit 581bff3a3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 12 deletions

View File

@ -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

View File

@ -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:

View File

@ -95,7 +95,7 @@
#define IMLIB_ENABLE_QRCODES
// Enable find_apriltags() (64 KB)
//#define IMLIB_ENABLE_APRILTAGS
#define IMLIB_ENABLE_APRILTAGS
// Enable fine find_apriltags() - (8-way connectivity versus 4-way connectivity)
// #define IMLIB_ENABLE_FINE_APRILTAGS