55jobs :
66 build :
77 runs-on : windows-2019
8+ strategy :
9+ matrix :
10+ gcc : ['10.3-2021.10']
811
912 steps :
10- - name : Cache Embedded Arm Toolchain
11- id : cache-arm-gcc
12- uses : actions/cache@v2
13- env :
14- cache-name : arm-gcc-10.3-2021-07
13+ - name : Install Arm GNU Toolchain (arm-none-eabi-gcc)
14+ uses : carlosperate/arm-none-eabi-gcc-action@v1
1515 with :
16- path : ${{ runner.temp }}/arm-gcc
17- key : ${{ runner.os }}-${{ env.cache-name }}
18- restore-keys : ${{ runner.os }}-${{ env.cache-name }}
16+ release : ${{ matrix.gcc }}
1917
2018 - name : Cache Python modules
21- uses : actions/cache@v2
19+ uses : actions/cache@v3
2220 with :
2321 path : ~\AppData\Local\pip\Cache
2422 key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
@@ -30,30 +28,18 @@ jobs:
3028 with :
3129 fetch-depth : 0
3230
33- - name : Install Embedded Arm Toolchain
34- if : steps.cache-arm-gcc.outputs.cache-hit != 'true'
35- run : |
36- (New-Object System.Net.WebClient).DownloadFile("https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.07/gcc-arm-none-eabi-10.3-2021.07-win32.zip","gcc-arm-none-eabi-10.3-2021.07-win32.zip");
37- echo "Installing gcc-arm-none-eabi-9-2020-q2-update-win32 in ${{ runner.temp }}\arm-gcc";
38- Expand-Archive -Path .\gcc-arm-none-eabi-10.3-2021.07-win32.zip -DestinationPath ${{ runner.temp }} -PassThru;
39- Rename-Item -Path ${{ runner.temp }}\gcc-arm-none-eabi-10.3-2021.07 -NewName ${{ runner.temp }}\arm-gcc
40-
41- - name : Check Embedded Arm Toolchain
42- run : |
43- echo ${{ runner.temp }}\arm-gcc\bin | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
44- ${{ runner.temp }}\arm-gcc\bin\arm-none-eabi-gcc -v
45-
4631 - name : Install Python module
4732 run : |
4833 pip install -r requirements.txt
4934
5035 - name : Compile
5136 run : |
37+ arm-none-eabi-gcc -v
5238 python tools/progen_compile.py -t cmake_gcc_arm -g mingw-make --release --parallel -v
5339 shell : cmd
5440
5541 - name : Upload test artifacts
56- uses : actions/upload-artifact@v2
42+ uses : actions/upload-artifact@v3
5743 with :
5844 name : firmware-dev-${{github.run_number}}
5945 path : |
0 commit comments