Skip to content

Commit 0e5997d

Browse files
committed
fixup! chore(pio): support new cmsis 6 version
1 parent 5d74e7f commit 0e5997d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ python3 -m venv "$HOME/venv"
1313
python3 -m pip install --quiet --upgrade platformio
1414

1515
# Install the development version of ststm32 platform
16-
pio pkg install --platform "https://github.com/platformio/platform-ststm32.git" || {
16+
pio pkg install --platform "https://github.com/platformio/platform-ststm32.git" --force --global || {
1717
exit 1
1818
}
1919
# Prepare framework for CI
@@ -26,7 +26,7 @@ python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/pl
2626
exit 1
2727
}
2828
# Add to platform.json the CMSIS DSP package
29-
python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/platform.json'), 'r+'); data=json.load(fp); data['packages']['framework-cmsis_dsp'] = {'type': 'framework', 'optional': true, 'version': '*'}; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
29+
python3 -c "import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/platform.json'), 'r+'); data=json.load(fp); data['packages']['framework-cmsis_dsp'] = {'type': 'framework', 'optional': 'true', 'version': '*'}; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
3030
exit 1
3131
}
3232
# Create symbolic link to the framework-arduinoststm32 package pointing to the repository workspace

0 commit comments

Comments
 (0)