Skip to content

Commit e56b9d3

Browse files
committed
fix: ci: Remove pio build workaround
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 84b9de6 commit e56b9d3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

.github/actions/pio-build/entrypoint.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,6 @@ python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/pl
1212
exit 1
1313
}
1414

15-
# Fix for variant path change while not updated in PIO
16-
python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/boards/malyanm300_f070cb.json'), 'r+'); data=json.load(fp); data['build']['variant'] = 'STM32F0xx/F070CBT'; data['build']['extra_flags'] = '-DSTM32F070xB -DVARIANT_H=\\\\\"variant_MALYANMx00_F070CB.h\\\\\"'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
17-
exit 1
18-
}
19-
python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/boards/nucleo_l152re.json'), 'r+'); data=json.load(fp); data['build']['variant'] = 'STM32L1xx/L151RET_L152RET_L162RET'; data['build']['extra_flags'] = '-DSTM32L152xE -DVARIANT_H=\\\\\"variant_NUCLEO_L152RE.h\\\\\"'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
20-
exit 1
21-
}
22-
2315
ln --symbolic "$GITHUB_WORKSPACE" "$HOME/.platformio/packages/framework-arduinoststm32" || {
2416
exit 1
2517
}

0 commit comments

Comments
 (0)