Fix __PROGRAM_START definition for TI Arm Clang (tiarmclang) (#315) #496
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Core Checks | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - .github/workflows/core.yml | |
| - CMSIS/Core/Include/**/* | |
| - CMSIS/Core/Source/**/* | |
| - CMSIS/Core/Test/**/* | |
| push: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lit: | |
| runs-on: ubuntu-24.04 | |
| env: | |
| ARM_UBL_ACTIVATION_CODE: ${{ secrets.ARM_UBL_ACTIVATION_CODE }} | |
| CLANG_TI_VERSION: "5.1.0.LTS" | |
| CLANG_TI_TC_SUFFIX: "5_1_0" | |
| CLANG_TI_INSTALL_PATH: "/home/runner/" | |
| CLANG_TI_SHA256: "c758668b78c080be5ec75393cdd09d077742fd1183aa0c181318a0119d58c4d0" | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-python@v7 | |
| with: | |
| python-version: '3.14' | |
| cache: 'pip' | |
| - name: Python requirements | |
| run: | | |
| pip install -r ./CMSIS/Core/Test/requirements.txt | |
| - name: Inspect Python libraries | |
| run: | | |
| echo "pythonLocation=$pythonLocation" | |
| find "$pythonLocation/lib" -maxdepth 1 -name 'libpython*' -ls | |
| python3-config --embed --ldflags | |
| - name: Install LLVM dependencies and tools | |
| working-directory: /home/runner | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install libtinfo6 llvm-18-tools | |
| sudo ln -s /usr/bin/FileCheck-18 /usr/bin/FileCheck | |
| - name: Activate vcpkg environment | |
| uses: ARM-software/cmsis-actions/vcpkg@v1 | |
| with: | |
| config: ./CMSIS/Core/Test/vcpkg-configuration.json | |
| - name: Activate Arm tool license | |
| uses: ARM-software/cmsis-actions/armlm@v1 | |
| with: | |
| code: "${{ env.ARM_UBL_ACTIVATION_CODE }}" | |
| - uses: ammaraskar/gcc-problem-matcher@master | |
| - name: Set TI ARM CLANG Environment Variables and Path | |
| run: | | |
| echo "CLANG_TI_PATH=${{ env.CLANG_TI_INSTALL_PATH }}ti-cgt-armllvm_${{ env.CLANG_TI_VERSION }}" >> $GITHUB_ENV | |
| echo "CLANG_TI_TOOLCHAIN_${{ env.CLANG_TI_TC_SUFFIX }}=${{ env.CLANG_TI_INSTALL_PATH }}ti-cgt-armllvm_${{ env.CLANG_TI_VERSION }}/bin" >> $GITHUB_ENV | |
| - name: Cache TI ARM CLANG | |
| id: cache-ti-arm-clang | |
| uses: actions/cache@v6 | |
| with: | |
| path: ${{ env.CLANG_TI_PATH }} | |
| key: ${{ runner.os }}-ti-arm-clang-${{ env.CLANG_TI_VERSION }} | |
| - name: Download and Verify TI ARM CLANG Installer | |
| working-directory: /home/runner | |
| if: steps.cache-ti-arm-clang.outputs.cache-hit != 'true' | |
| run: | | |
| FILE="ti_cgt_armllvm_${{ env.CLANG_TI_VERSION }}_linux-x64_installer.bin" | |
| URL="https://dr-download.ti.com/software-development/ide-configuration-compiler-or-debugger/MD-ayxs93eZNN/${{ env.CLANG_TI_VERSION }}/${FILE}" | |
| curl -L "$URL" -o "$FILE" | |
| echo "${{ env.CLANG_TI_SHA256 }} $FILE" | sha256sum --check | |
| chmod +x "$FILE" | |
| ./"$FILE" --mode unattended --prefix "${{ env.CLANG_TI_INSTALL_PATH }}" | |
| - name: Run LIT | |
| working-directory: ./CMSIS/Core/Test | |
| run: | | |
| ./build.py lit | |
| - name: Publish Test Results | |
| if: ${{ !cancelled() }} | |
| uses: EnricoMi/publish-unit-test-result-action@v2 | |
| with: | |
| report_individual_runs: true | |
| files: ./CMSIS/Core/Test/*.xunit |