Skip to content

Commit 14c0962

Browse files
committed
DNM: test
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 0e5997d commit 14c0962

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

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

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,40 +21,40 @@ pio pkg install --platform "https://github.com/platformio/platform-ststm32.git"
2121
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'] = '*'; del data['packages']['framework-arduinoststm32']['owner']; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
2222
exit 1
2323
}
24-
# Modify platform.json to use local CMSIS package without owner and version restrictions
25-
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']['version'] = '*'; del data['packages']['framework-cmsis']['owner']; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
26-
exit 1
27-
}
28-
# 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()" || {
30-
exit 1
31-
}
24+
# # Modify platform.json to use local CMSIS package without owner and version restrictions
25+
# 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']['version'] = '*'; del data['packages']['framework-cmsis']['owner']; del data['packages']['framework-cmsis']['optionalVersions']; fp.seek(0); fp.truncate(); json.dump(data, fp); fp.close()" || {
26+
# exit 1
27+
# }
28+
# # 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()" || {
30+
# exit 1
31+
# }
3232
# Create symbolic link to the framework-arduinoststm32 package pointing to the repository workspace
3333
ln --symbolic "$GITHUB_WORKSPACE" "$HOME/.platformio/packages/framework-arduinoststm32" || {
3434
exit 1
3535
}
36-
# Download and unpack CMSIS package
37-
wget --no-verbose "https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/$CMSIS_VERSION/$CMSIS_ARCHIVE" || {
38-
exit 1
39-
}
40-
tar --extract --bzip2 --file="$CMSIS_ARCHIVE" || {
41-
exit 1
42-
}
43-
# Create symbolic link to the framework-cmsis package pointing to the unpacked CMSIS package
44-
ln --symbolic "$GITHUB_WORKSPACE/CMSIS-${CMSIS_VERSION}" "$HOME/.platformio/packages/framework-cmsis" || {
45-
exit 1
46-
}
47-
# Download and unpack CMSIS DSP package
48-
wget --no-verbose "https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/$CMSIS_VERSION/$CMSIS_DSP_ARCHIVE" || {
49-
exit 1
50-
}
51-
tar --extract --bzip2 --file="$CMSIS_DSP_ARCHIVE" || {
52-
exit 1
53-
}
54-
# Create symbolic link to the framework-cmsis_dsp package pointing to the unpacked CMSIS DSP package
55-
ln --symbolic "$GITHUB_WORKSPACE/CMSIS_DSP-${CMSIS_DSP_VERSION}" "$HOME/.platformio/packages/framework-cmsis_dsp" || {
56-
exit 1
57-
}
36+
# # Download and unpack CMSIS package
37+
# wget --no-verbose "https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/$CMSIS_VERSION/$CMSIS_ARCHIVE" || {
38+
# exit 1
39+
# }
40+
# tar --extract --bzip2 --file="$CMSIS_ARCHIVE" || {
41+
# exit 1
42+
# }
43+
# # Create symbolic link to the framework-cmsis package pointing to the unpacked CMSIS package
44+
# ln --symbolic "$GITHUB_WORKSPACE/CMSIS-${CMSIS_VERSION}" "$HOME/.platformio/packages/framework-cmsis" || {
45+
# exit 1
46+
# }
47+
# # Download and unpack CMSIS DSP package
48+
# wget --no-verbose "https://github.com/stm32duino/ArduinoModule-CMSIS/releases/download/$CMSIS_VERSION/$CMSIS_DSP_ARCHIVE" || {
49+
# exit 1
50+
# }
51+
# tar --extract --bzip2 --file="$CMSIS_DSP_ARCHIVE" || {
52+
# exit 1
53+
# }
54+
# # Create symbolic link to the framework-cmsis_dsp package pointing to the unpacked CMSIS DSP package
55+
# ln --symbolic "$GITHUB_WORKSPACE/CMSIS_DSP-${CMSIS_DSP_VERSION}" "$HOME/.platformio/packages/framework-cmsis_dsp" || {
56+
# exit 1
57+
# }
5858
cd "$GITHUB_WORKSPACE/CI/build/" || {
5959
exit 1
6060
}

0 commit comments

Comments
 (0)