File tree Expand file tree Collapse file tree
CMSIS/CoreValidation/Project Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,9 @@ concurrency:
1414 group : ${{ github.workflow }}-${{ github.ref }}
1515 cancel-in-progress : true
1616
17+ env :
18+ IAR_VERSION : ' 9.40.2'
19+
1720jobs :
1821 lit :
1922 runs-on : ubuntu-latest
3639 - name : Cache vcpkg
3740 uses : actions/cache@v3
3841 with :
39- key : vcpkg-${{ runner.os }}-${{ runner.arch }}-${{ github.run_id }}-${{ matrix.compiler }}
42+ key : vcpkg-${{ runner.os }}-${{ runner.arch }}-${{ github.run_id }}
4043 restore-keys : |
4144 vcpkg-${{ runner.os }}-${{ runner.arch }}-
4245 path : /home/runner/.vcpkg
5457 . <(curl https://aka.ms/vcpkg-init.sh -L)
5558 vcpkg x-update-registry --all
5659 vcpkg activate
57-
60+
61+ - name : Cache IAR Toolchain
62+ uses : actions/cache@v3
63+ with :
64+ key : bxarm-${{env.IAR_VERSION}}-${{ runner.os }}-${{ runner.arch }}-${{ github.run_id }}
65+ restore-keys : |
66+ bxarm-${{env.IAR_VERSION}}-${{ runner.os }}-${{ runner.arch }}-
67+ path : bxarm-${{env.IAR_VERSION}}.deb
68+
69+ - name : Install IAR Toolchain
70+ run : |
71+ if [ ! -f bxarm-${{env.IAR_VERSION}}.deb ]; then
72+ curl -LO http://files.iar.com/ftp/pub/box/bxarm-${{env.IAR_VERSION}}.deb
73+ fi
74+ sudo dpkg -i bxarm-${{env.IAR_VERSION}}.deb
75+ echo "/opt/iarsystems/bxarm/arm/bin" >> "$GITHUB_PATH"
76+ echo "IAR_TOOLCHAIN_${IAR_VERSION//./_}=/opt/iarsystems/bxarm/arm/bin" >> "$GITHUB_ENV"
77+ # TODO: activate license
78+
5879 - name : Activate Arm tool license
5980 working-directory : ./CMSIS/Core/Test
6081 run : |
Original file line number Diff line number Diff line change @@ -15,13 +15,16 @@ concurrency:
1515 group : ${{ github.workflow }}-${{ github.ref }}
1616 cancel-in-progress : true
1717
18+ env :
19+ IAR_VERSION : ' 9.40.2'
20+
1821jobs :
1922 build-and-run :
2023
2124 strategy :
2225 fail-fast : true
2326 matrix :
24- compiler : [AC6, GCC, Clang]
27+ compiler : [AC6, GCC, Clang, IAR ]
2528
2629 runs-on : ubuntu-latest
2730
7881 vcpkg x-update-registry --all
7982 vcpkg activate
8083
84+ - name : Cache IAR Toolchain
85+ uses : actions/cache@v3
86+ if : matrix.compiler == 'IAR'
87+ with :
88+ key : bxarm-${{env.IAR_VERSION}}-${{ runner.os }}-${{ runner.arch }}-${{ github.run_id }}
89+ restore-keys : |
90+ bxarm-${{env.IAR_VERSION}}-${{ runner.os }}-${{ runner.arch }}-
91+ path : bxarm-${{env.IAR_VERSION}}.deb
92+
93+ - name : Install IAR Toolchain
94+ if : matrix.compiler == 'IAR'
95+ run : |
96+ if [ ! -f bxarm-${{env.IAR_VERSION}}.deb ]; then
97+ curl -LO http://files.iar.com/ftp/pub/box/bxarm-${{env.IAR_VERSION}}.deb
98+ fi
99+ sudo dpkg -i bxarm-${{env.IAR_VERSION}}.deb
100+ echo "/opt/iarsystems/bxarm/arm/bin" >> "$GITHUB_PATH"
101+ echo "IAR_TOOLCHAIN_${IAR_VERSION//./_}=/opt/iarsystems/bxarm/arm/bin" >> "$GITHUB_ENV"
102+ # TODO: activate license
103+
81104 - name : Activate Arm tool license
82105 working-directory : ./CMSIS/CoreValidation/Project
83106 run : |
Original file line number Diff line number Diff line change @@ -248,10 +248,5 @@ def model_exec(config):
248248 return cmdline
249249
250250
251- # @matrix_filter
252- # def filter_iar(config):
253- # return config.compiler == CompilerAxis.IAR
254-
255-
256251if __name__ == "__main__" :
257252 main ()
You can’t perform that action at this time.
0 commit comments