5
5
jobs :
6
6
build :
7
7
runs-on : windows-2019
8
+ strategy :
9
+ matrix :
10
+ gcc : ['10.3-2021.10']
8
11
9
12
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
15
15
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 }}
19
17
20
18
- name : Cache Python modules
21
- uses : actions/cache@v2
19
+ uses : actions/cache@v3
22
20
with :
23
21
path : ~\AppData\Local\pip\Cache
24
22
key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
@@ -30,30 +28,18 @@ jobs:
30
28
with :
31
29
fetch-depth : 0
32
30
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
-
46
31
- name : Install Python module
47
32
run : |
48
33
pip install -r requirements.txt
49
34
50
35
- name : Compile
51
36
run : |
37
+ arm-none-eabi-gcc -v
52
38
python tools/progen_compile.py -t cmake_gcc_arm -g mingw-make --release --parallel -v
53
39
shell : cmd
54
40
55
41
- name : Upload test artifacts
56
- uses : actions/upload-artifact@v2
42
+ uses : actions/upload-artifact@v3
57
43
with :
58
44
name : firmware-dev-${{github.run_number}}
59
45
path : |
0 commit comments