Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit38f6145

Browse files
committed
[PIO] Fix variants path changes
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parentf0789fa commit38f6145

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ platformio platform install "https://github.com/platformio/platform-ststm32.git"
1111
python3 -c"import json; import os; fp=open(os.path.expanduser('~/.platformio/platforms/ststm32/platform.json'), 'r+'); data=json.load(fp); data['packages']['framework-arduinoststm32']['version'] = '*'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()"|| {
1212
exit 1
1313
}
14+
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/remram_v1.json'), 'r+'); data=json.load(fp); data['build']['variant'] = '3dprinter/REMRAM_V1'; 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/blackpill_f103c8.json'), 'r+'); data=json.load(fp); data['build']['variant'] = 'Generic_F1/PILL_F103XX'; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()"|| {
20+
exit 1
21+
}
22+
1423
ln --symbolic"$GITHUB_WORKSPACE""$HOME/.platformio/packages/framework-arduinoststm32"|| {
1524
exit 1
1625
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp