Skip to content

Commit 91eb78c

Browse files
committed
[CI] Make action scripts PlatformIO compliant
Signed-off-by: Frederic Pillon <[email protected]>
1 parent 399f2fa commit 91eb78c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#!/bin/bash
22

3-
CMSIS_VERSION=$1
4-
CMSIS_ARCHIVE=CMSIS-${CMSIS_VERSION}.tar.bz2
3+
CMSIS_VERSION="$1"
4+
CMSIS_ARCHIVE="CMSIS-${CMSIS_VERSION}.tar.bz2"
55

66
# Install the development version of ststm32 platform
7-
platformio platform install https://github.com/platformio/platform-ststm32.git
7+
platformio platform install "https://github.com/platformio/platform-ststm32.git"
88

99
# Prepare framework for CI
1010
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()"
1111

12-
ln -sf $GITHUB_WORKSPACE $HOME/.platformio/packages/framework-arduinoststm32
12+
ln -sf "$GITHUB_WORKSPACE" "$HOME/.platformio/packages/framework-arduinoststm32"
1313
# Download and unpack CMSIS package
14-
wget --no-verbose https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/$CMSIS_VERSION/CMSIS-$CMSIS_VERSION.tar.bz2
15-
tar -xjf CMSIS-$CMSIS_VERSION.tar.bz2
16-
cd $GITHUB_WORKSPACE/CI/build/
14+
wget --no-verbose "https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/$CMSIS_VERSION/$CMSIS_ARCHIVE"
15+
tar -xjf "$CMSIS_ARCHIVE"
16+
cd "$GITHUB_WORKSPACE/CI/build/"
1717
python3 platformio-builder.py --board=blackpill_f103c8 --board=remram_v1
1818

1919
exit $?

0 commit comments

Comments
 (0)