mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-14 00:37:44 -04:00
Update download locations to outside repository content (#1355)
Update curl command to download in a non user accessible folder
This commit is contained in:
parent
67bc5a930d
commit
c4da4ef1a7
1 changed files with 24 additions and 10 deletions
34
.github/workflows/freertos_demos.yml
vendored
34
.github/workflows/freertos_demos.yml
vendored
|
@ -406,20 +406,34 @@ jobs:
|
||||||
# ${{ env.stepName }}
|
# ${{ env.stepName }}
|
||||||
echo -e "::group::${{ env.stepName }}"
|
echo -e "::group::${{ env.stepName }}"
|
||||||
set +e
|
set +e
|
||||||
curl -L -O https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-LlCjWuAbzH/9.3.1.2/msp430-gcc-full-linux-x64-installer-9.3.1.2.7z
|
curl -L -o "$HOME/msp430-gcc-full-linux-x64-installer-9.3.1.2.7z" \
|
||||||
|
https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-LlCjWuAbzH/9.3.1.2/msp430-gcc-full-linux-x64-installer-9.3.1.2.7z
|
||||||
sudo apt update -y
|
sudo apt update -y
|
||||||
sudo apt install -y p7zip-full
|
sudo apt install -y p7zip-full
|
||||||
7z x ./msp430-gcc-full-linux-x64-installer-9.3.1.2.7z
|
pushd $HOME
|
||||||
chmod +x ./msp430-gcc-full-linux-x64-installer-9.3.1.2.run
|
|
||||||
sudo ./msp430-gcc-full-linux-x64-installer-9.3.1.2.run --prefix /usr/bin/msp430-gcc --mode unattended
|
EXPECTED_MD5="2db2f99b4cd5c541ca0389ee20c67527"
|
||||||
exitStatus=$?
|
GENERATED_MD5=$(md5sum msp430-gcc-full-linux-x64-installer-9.3.1.2.7z | awk '{print $1}')
|
||||||
set -e
|
|
||||||
echo -e "::endgroup::"
|
if [ "$GENERATED_MD5" = "$EXPECTED_MD5" ]; then
|
||||||
if [ $exitStatus -eq 0 ]; then
|
7z x ./msp430-gcc-full-linux-x64-installer-9.3.1.2.7z
|
||||||
echo -e "${{ env.bashPass }} ${{ env.stepName }} ${{ env.bashEnd }}"
|
chmod +x ./msp430-gcc-full-linux-x64-installer-9.3.1.2.run
|
||||||
|
sudo ./msp430-gcc-full-linux-x64-installer-9.3.1.2.run --prefix /usr/bin/msp430-gcc --mode unattended
|
||||||
|
exitStatus=$?
|
||||||
|
set -e
|
||||||
|
echo -e "::endgroup::"
|
||||||
|
popd
|
||||||
|
if [ $exitStatus -eq 0 ]; then
|
||||||
|
echo -e "${{ env.bashPass }} ${{ env.stepName }} ${{ env.bashEnd }}"
|
||||||
|
else
|
||||||
|
echo -e "${{ env.bashFail }} ${{ env.stepName }} ${{ env.bashEnd }}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
|
popd
|
||||||
|
echo -e "${{ env.bashFail }} MD5 checksum verification failed for msp430-gcc-full-linux-x64-installer-9.3.1.2.7z ${{ env.bashEnd }}"
|
||||||
echo -e "${{ env.bashFail }} ${{ env.stepName }} ${{ env.bashEnd }}"
|
echo -e "${{ env.bashFail }} ${{ env.stepName }} ${{ env.bashEnd }}"
|
||||||
exit 1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- env:
|
- env:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue