@@ -59,31 +59,47 @@ jobs:
59
59
60
60
steps :
61
61
- name : Setup Python
62
- uses : actions/setup-python@v2
62
+ uses : actions/setup-python@v3
63
63
64
64
- name : Setup Node.js
65
65
uses : actions/setup-node@v1
66
66
67
67
- name : Checkout Code
68
- uses : actions/checkout@v1
68
+ uses : actions/checkout@v3
69
69
with :
70
70
submodules : true
71
71
72
72
- name : Checkout linkermap
73
- uses : actions/checkout@v2
73
+ uses : actions/checkout@v3
74
74
with :
75
75
repository : hathach/linkermap
76
76
path : linkermap
77
-
78
- - name : Install Toolchains
77
+
78
+ - name : Set Toolchain URL
79
+ # 9.3.1-1.2.1 is xpack modified version which significantly increased compiled size to 6-7KB and cause flash overflow.
80
+ run : echo >> $GITHUB_ENV TOOLCHAIN_URL=https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v10.2.1-1.1/xpack-arm-none-eabi-gcc-10.2.1-1.1-linux-x64.tar.gz
81
+
82
+ - name : Cache Toolchain
83
+ uses : actions/cache@v3
84
+ id : cache-toolchain
85
+ with :
86
+ path : ~/cache/
87
+ key : ${{ runner.os }}-22-05-17-${{ env.TOOLCHAIN_URL }}
88
+
89
+ - name : Install Toolchain
90
+ if : steps.cache-toolchain.outputs.cache-hit != 'true'
91
+ run : |
92
+ mkdir -p ~/cache/toolchain
93
+ wget --progress=dot:mega $TOOLCHAIN_URL -O toolchain.tar.gz
94
+ tar -C ~/cache/toolchain -xaf toolchain.tar.gz
95
+
96
+ - name : Set Toolchain Path
97
+ run : echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
98
+
99
+ - name : Install Tools
79
100
run : |
80
101
pip3 install adafruit-nrfutil uritemplate requests intelhex
81
102
pip3 install linkermap/
82
- npm install --global xpm
83
- # 9.3.1-1.2.1 is xpack modified version which significantly increased compiled size to 6-7KB and cause flash overflow.
84
- # Skip this version for now, we will try again with next official release from ARM
85
- xpm install --global @xpack-dev-tools/[email protected]
86
- echo `echo $HOME/.local/xPacks/@xpack-dev-tools/arm-none-eabi-gcc/*/.content/bin` >> $GITHUB_PATH
87
103
88
104
- name : Build
89
105
run : |
93
109
- name : Linker Map
94
110
run : make BOARD=${{ matrix.board }} linkermap
95
111
96
- - uses : actions/upload-artifact@v2
112
+ - uses : actions/upload-artifact@v3
97
113
with :
98
114
name : ${{ matrix.board }}
99
115
path : _bin/${{ matrix.board }}
0 commit comments