@@ -59,31 +59,47 @@ jobs:
5959
6060 steps :
6161 - name : Setup Python
62- uses : actions/setup-python@v2
62+ uses : actions/setup-python@v3
6363
6464 - name : Setup Node.js
6565 uses : actions/setup-node@v1
6666
6767 - name : Checkout Code
68- uses : actions/checkout@v1
68+ uses : actions/checkout@v3
6969 with :
7070 submodules : true
7171
7272 - name : Checkout linkermap
73- uses : actions/checkout@v2
73+ uses : actions/checkout@v3
7474 with :
7575 repository : hathach/linkermap
7676 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
79100 run : |
80101 pip3 install adafruit-nrfutil uritemplate requests intelhex
81102 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
87103
88104 - name : Build
89105 run : |
93109 - name : Linker Map
94110 run : make BOARD=${{ matrix.board }} linkermap
95111
96- - uses : actions/upload-artifact@v2
112+ - uses : actions/upload-artifact@v3
97113 with :
98114 name : ${{ matrix.board }}
99115 path : _bin/${{ matrix.board }}
0 commit comments