mirror of
https://github.com/hathach/tinyusb.git
synced 2026-03-11 10:04:51 +00:00
refactor build scripts to support multiple build targets and improve argument handling
This commit is contained in:
7
.github/workflows/build_util.yml
vendored
7
.github/workflows/build_util.yml
vendored
@ -69,12 +69,11 @@ jobs:
|
||||
if [ "${{ inputs.toolchain }}" == "esp-idf" ]; then
|
||||
docker run --rm -e MEMBROWSE_API_KEY="$MEMBROWSE_API_KEY" -v $PWD:/project -w /project espressif/idf:tinyusb python tools/build.py --target all ${{ matrix.arg }}
|
||||
else
|
||||
BUILD_PY_ARGS="-s ${{ inputs.build-system }} ${{ steps.setup-toolchain.outputs.build_option }} ${{ inputs.build-options }}"
|
||||
python tools/build.py $BUILD_PY_ARGS --target all ${{ matrix.arg }}
|
||||
|
||||
BUILD_PY_ARGS="-s ${{ inputs.build-system }} ${{ steps.setup-toolchain.outputs.build_option }} ${{ inputs.build-options }} --target all"
|
||||
if [ "${{ inputs.upload-metrics }}" = "true" ]; then
|
||||
python tools/build.py $BUILD_PY_ARGS --target tinyusb_metrics ${{ matrix.arg }}
|
||||
BUILD_PY_ARGS="$BUILD_PY_ARGS --target tinyusb_metrics"
|
||||
fi
|
||||
python tools/build.py $BUILD_PY_ARGS ${{ matrix.arg }}
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
|
||||
Reference in New Issue
Block a user