@@ -19,36 +19,10 @@ jobs:
1919 west init -l example-application
2020 west update -o=--depth=1 -n
2121
22- - name : Install nrfutil and toolchain manager
23- run : |
24- wget -q https://files.nordicsemi.com/artifactory/swtools/external/nrfutil/executables/x86_64-unknown-linux-gnu/nrfutil
25- chmod +x nrfutil
26- ./nrfutil install toolchain-manager
27-
28- - name : Find proper toolchain bundle
29- id : set-tb-id
30- run : echo "TOOLCHAIN_BUNDLE_NAME=ncs-toolchain-x86_64-linux-$(./nrf/scripts/print_toolchain_checksum.sh).tar.gz" >> $GITHUB_OUTPUT
31-
32- - name : Restore toolchain bundle from cache
33- id : restore-cached-tb
34- uses : actions/cache/restore@v4
22+ - name : Setup ncs toolchain
23+ uses : nrfconnect/action-ncs-toolchain-setup@main
3524 with :
36- path : ${{steps.set-tb-id.outputs.TOOLCHAIN_BUNDLE_NAME}}
37- key : ${{steps.set-tb-id.outputs.TOOLCHAIN_BUNDLE_NAME}}
38-
39- - name : Download toolchain bundle if not cached
40- if : steps.restore-cached-tb.outputs.cache-hit != 'true'
41- run : wget https://files.nordicsemi.com/artifactory/NCS/external/bundles/v3/${{steps.set-tb-id.outputs.TOOLCHAIN_BUNDLE_NAME}}
42-
43- - name : Save toolchain bundle to cache
44- if : steps.restore-cached-tb.outputs.cache-hit != 'true'
45- uses : actions/cache/save@v4
46- with :
47- path : ${{steps.set-tb-id.outputs.TOOLCHAIN_BUNDLE_NAME}}
48- key : ${{steps.set-tb-id.outputs.TOOLCHAIN_BUNDLE_NAME}}
49-
50- - name : Install proper toolchain bundle
51- run : ./nrfutil toolchain-manager install --toolchain-bundle ${{steps.set-tb-id.outputs.TOOLCHAIN_BUNDLE_NAME}}
25+ nrf-path : nrf
5226
5327 - name : Build firmware
5428 run : |
0 commit comments