Skip to content

Commit

Permalink
GHA: use toolchain selected by nrf
Browse files Browse the repository at this point in the history
toolchain to use is selected by script in nrf repository.
use the latest toolchain in docker images

Signed-off-by: Robert Gałat <[email protected]>
  • Loading branch information
RobertGalatNordic committed Sep 25, 2024
1 parent 8a493a0 commit fcbe39d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,19 @@ RUN <<EOT
EOT

RUN <<EOT
nrfutil toolchain-manager search > versions.txt
latest_version=`tail -n+2 versions.txt | sort --reverse | head -n 1 | awk '{print$1}'`
echo "installing toolchain version" $latest_version
nrfutil toolchain-manager install --ncs-version $latest_version
mkdir /workdir
git clone https://github.com/nrfconnect/sdk-nrf /workdir/nrf
EOT

RUN <<EOT
nrfutil toolchain-manager install --toolchain-bundle-id $(/workdir/nrf/scripts/print_toolchain_checksum.sh)
nrfutil toolchain-manager list
EOT

WORKDIR /workdir
SHELL ["nrfutil","toolchain-manager","launch","/bin/bash","--","-c"]
RUN <<EOT
west init -m https://github.com/nrfconnect/sdk-nrf --mr main .
west init -l nrf
west update
python3 -m pip install devicetree
python3 -m pip install -r /workdir/nrf/scripts/requirements.txt -r /workdir/zephyr/scripts/requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on_docker_change.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- '.*'

schedule:
- cron: "0 0 1 * *"
- cron: "0 0 * * 0"

env:
REGISTRY: ghcr.io
Expand Down

0 comments on commit fcbe39d

Please sign in to comment.