mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-09 14:42:05 +00:00
sed doesn't like newlines (#4847)
* sed doesn't like newlines * fold remove-debug-flags block * PATH is a system env var * Runners don't like rm -f ${workspace path}
This commit is contained in:
parent
682133501a
commit
c72612d826
11
.github/actions/build-variant/action.yml
vendored
11
.github/actions/build-variant/action.yml
vendored
@ -12,7 +12,7 @@ inputs:
|
|||||||
description: Path to the build script
|
description: Path to the build script
|
||||||
required: true
|
required: true
|
||||||
remove-debug-flags:
|
remove-debug-flags:
|
||||||
description: A newline separated list of files to remove debug flags from
|
description: A space separated list of files to remove debug flags from
|
||||||
required: false
|
required: false
|
||||||
default: ""
|
default: ""
|
||||||
ota-firmware-source:
|
ota-firmware-source:
|
||||||
@ -59,8 +59,8 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
if: inputs.remove-debug-flags != ''
|
if: inputs.remove-debug-flags != ''
|
||||||
run: |
|
run: |
|
||||||
for PATH in ${{ inputs.remove-debug-flags }}; do
|
for INI_FILE in ${{ inputs.remove-debug-flags }}; do
|
||||||
sed -i '/DDEBUG_HEAP/d' ${PATH}
|
sed -i '/DDEBUG_HEAP/d' ${INI_FILE}
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Build ${{ inputs.board }}
|
- name: Build ${{ inputs.board }}
|
||||||
@ -88,8 +88,3 @@ runs:
|
|||||||
overwrite: true
|
overwrite: true
|
||||||
path: |
|
path: |
|
||||||
${{ inputs.artifact-paths }}
|
${{ inputs.artifact-paths }}
|
||||||
|
|
||||||
- name: Clean up resources
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
rm -rf .
|
|
||||||
|
2
.github/workflows/build_esp32.yml
vendored
2
.github/workflows/build_esp32.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
board: ${{ inputs.board }}
|
board: ${{ inputs.board }}
|
||||||
remove-debug-flags: |
|
remove-debug-flags: >
|
||||||
./arch/esp32/esp32.ini
|
./arch/esp32/esp32.ini
|
||||||
./arch/esp32/esp32s2.ini
|
./arch/esp32/esp32s2.ini
|
||||||
./arch/esp32/esp32s3.ini
|
./arch/esp32/esp32s3.ini
|
||||||
|
2
.github/workflows/build_esp32_c3.yml
vendored
2
.github/workflows/build_esp32_c3.yml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
board: ${{ inputs.board }}
|
board: ${{ inputs.board }}
|
||||||
remove-debug-flags: |
|
remove-debug-flags: >
|
||||||
./arch/esp32/esp32.ini
|
./arch/esp32/esp32.ini
|
||||||
./arch/esp32/esp32s2.ini
|
./arch/esp32/esp32s2.ini
|
||||||
./arch/esp32/esp32s3.ini
|
./arch/esp32/esp32s3.ini
|
||||||
|
2
.github/workflows/build_esp32_s3.yml
vendored
2
.github/workflows/build_esp32_s3.yml
vendored
@ -19,7 +19,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
board: ${{ inputs.board }}
|
board: ${{ inputs.board }}
|
||||||
remove-debug-flags: |
|
remove-debug-flags: >
|
||||||
./arch/esp32/esp32.ini
|
./arch/esp32/esp32.ini
|
||||||
./arch/esp32/esp32s2.ini
|
./arch/esp32/esp32s2.ini
|
||||||
./arch/esp32/esp32s3.ini
|
./arch/esp32/esp32s3.ini
|
||||||
|
Loading…
Reference in New Issue
Block a user