Skip to content

Commit c638e2b

Browse files
committed
Add TI Arm Clang Compiler Download and Cache to Core Test Workflow
1 parent aa6bc63 commit c638e2b

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/core.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020

2121
env:
2222
ARM_UBL_ACTIVATION_CODE: ${{ secrets.ARM_UBL_ACTIVATION_CODE }}
23+
CLANG_TI_VERSION: "5.0.0.STS"
24+
CLANG_TI_PATH: "~/ti_arm_cgt"
25+
CLANG_TI_SHA256: "7a71570703f93f3682258b95d5a14a620cd6a5fc74dc5233f2d6c56d366c6da2"
2326

2427
steps:
2528
- uses: actions/checkout@v6
@@ -52,6 +55,28 @@ jobs:
5255

5356
- uses: ammaraskar/gcc-problem-matcher@master
5457

58+
- name: Cache TI Arm Clang
59+
id: cache-ti-arm-clang
60+
uses: actions/cache@v4
61+
with:
62+
path: ${{ env.CLANG_TI_PATH }}
63+
key: ${{ runner.os }}-ti-arm-clang-${{ env.CLANG_TI_VERSION }}
64+
65+
- name: Download and Verify TI Arm Clang Installer
66+
if: steps.cache-ti-arm-clang.outputs.cache-hit != 'true'
67+
run: |
68+
FILE="ti_cgt_armllvm_${{ env.CLANG_TI_VERSION }}_linux-x64_installer.bin"
69+
URL="https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-ayxs93eZNN/${{ env.CLANG_TI_VERSION }}/${FILE}"
70+
71+
curl -L "$URL" -o "$FILE"
72+
echo "${{ env.CLANG_TI_SHA256 }} $FILE" | sha256sum --check
73+
chmod +x "$FILE"
74+
./"$FILE" --mode unattended --prefix "${{ env.CLANG_TI_PATH }}"
75+
76+
- name: Set TI Arm Clang Environment Variable
77+
run: |
78+
echo "CLANG_TI_TOOLCHAIN_${{ env.CLANG_TI_VERSION }}=${{ env.CLANG_TI_PATH }}/bin" >> $GITHUB_ENV
79+
5580
- name: Run LIT
5681
working-directory: ./CMSIS/Core/Test
5782
run: |

0 commit comments

Comments
 (0)