5050
5151 - uses : actions/setup-python@v5
5252 with :
53- python-version : ' 3.10'
53+ python-version : ' 3.10'
5454 cache : ' pip'
5555
5656 - name : Python requirements
6363 run : |
6464 sudo apt-get update
6565 sudo apt-get install libtinfo5
66-
66+
6767 - name : Install IAR Toolchain
6868 if : matrix.compiler == 'IAR'
6969 working-directory : /home/runner
@@ -73,17 +73,39 @@ jobs:
7373 echo "PATH=$PATH:$(pwd)/cxarm-9.70.1/arm/bin" >> $GITHUB_ENV
7474 echo "IAR_TOOLCHAIN_9_70_1=$(pwd)/cxarm-9.70.1/arm/bin" >> $GITHUB_ENV
7575
76-
7776 - name : Activate vcpkg environment
7877 uses : ARM-software/cmsis-actions/vcpkg@v1
7978 with :
8079 config : ./CMSIS/CoreValidation/Project/vcpkg-configuration.json
81-
82- - name : Inspect IAR Toolchain
80+
81+ - name : Inspect IAR Toolchain -1
82+ shell : bash
83+ continue-on-error : true
8384 run : |
8485 iccarm --version
85- ilinkarm --version
86- iarchive --version
86+
87+ - name : Inspect IAR Toolchain - 2
88+ shell : bash
89+ continue-on-error : true
90+ run : |
91+ env | grep -i iar
92+
93+ - name : Create LMS config file
94+ run : |
95+ echo '{"token": "'"${IAR_LMS_BEARER_TOKEN}"'", "type": "bearer"}' > lms_config.json
96+ export IAR_LMS_CONFIG=$(pwd)/lms_config.json
97+ echo "IAR_LMS_CONFIG=$(pwd)/lms_config.json" >> $GITHUB_ENV
98+ cat $(pwd)/lms_config.json
99+ echo "Token starts with: ${IAR_LMS_BEARER_TOKEN:0:10}..."
100+ echo "Config file: ${IAR_LMS_CONFIG}"
101+ echo "int main() { return 0; }" > dummy.c
102+ iccarm dummy.c
103+
104+ - name : Compile dummy code with IAR
105+ shell : bash
106+ run : |
107+ echo "int main() { return 0; }" > dummy.c
108+ iccarm dummy.c
87109
88110 - name : Activate Arm tool license
89111 uses : ARM-software/cmsis-actions/armlm@v1
@@ -102,12 +124,18 @@ jobs:
102124
103125 - name : Build
104126 working-directory : ./CMSIS/CoreValidation/Project
127+ shell : bash
128+ env :
129+ IAR_LMS_BEARER_TOKEN : ${{ secrets.IAR_LMS_BEARER_TOKEN }}
105130 run : |
131+ echo "Token is set: ${IAR_LMS_BEARER_TOKEN:+yes}"
106132 echo "Register local Cortex_DFP pack"
107133 cpackget add /home/runner/Cortex_DFP/ARM.Cortex_DFP.pdsc
108134
109135 echo "Build test projects ..."
110- ./build.py --verbose -c ${{ matrix.compiler }} build || echo "::warning::=== Some configurations failed to build! ==="
136+ cbuild Validation.csolution.yml --toolchain IAR --update-rte -c .none+CM0 -d
137+
138+ # ./build.py --verbose -c ${{ matrix.compiler }} build || echo "::warning::=== Some configurations failed to build! ==="
111139
112140 - name : Perform CodeQL Analysis
113141 if : ${{ !cancelled() && matrix.compiler == 'GCC' }}
0 commit comments