Skip to content

Commit 379f9f2

Browse files
committed
tests: Fix build stage
Zephyr docker image is now more than 16GB. Runner runs out of disk space. Signed-off-by: Jorgen Kvalvaag <[email protected]>
1 parent a3a5d46 commit 379f9f2

File tree

1 file changed

+31
-3
lines changed

1 file changed

+31
-3
lines changed

.github/workflows/build.yml

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,39 @@ on:
5454
- cron: "0 0 * * *"
5555

5656
jobs:
57+
setup:
58+
runs-on: ubuntu-24.04
59+
outputs:
60+
TOOLCHAIN_VERSION: ${{ steps.setup.outputs.TOOLCHAIN_VERSION }}
61+
steps:
62+
- name: Checkout ATT
63+
uses: actions/checkout@v4
64+
with:
65+
path: att
66+
- name: Find NCS SHA
67+
run: |
68+
NCS_REV=$(cat att/west.yml | grep "revision:" | awk '{print $2}' | xargs)
69+
echo "NCS_REV=${NCS_REV}" >> $GITHUB_ENV
70+
echo "NCS_REV=${NCS_REV}"
71+
- name: Checkout NCS
72+
uses: actions/checkout@v4
73+
with:
74+
path: nrf
75+
repository: nrfconnect/sdk-nrf
76+
ref: ${{ env.NCS_REV }}
77+
- name: Set Toolchain Version
78+
id: setup
79+
run: |
80+
TOOLCHAIN_VERSION=$(./nrf/scripts/print_toolchain_checksum.sh)
81+
echo "TOOLCHAIN_VERSION=${TOOLCHAIN_VERSION}"
82+
echo "TOOLCHAIN_VERSION=${TOOLCHAIN_VERSION}" >> $GITHUB_OUTPUT
5783
build:
5884
runs-on: ubuntu-24.04
59-
container: ghcr.io/zephyrproject-rtos/ci:v0.27.4
60-
env:
61-
CMAKE_PREFIX_PATH: /opt/toolchains
85+
needs: setup
86+
container: ghcr.io/nrfconnect/sdk-nrf-toolchain:${{ needs.setup.outputs.TOOLCHAIN_VERSION }}
87+
defaults:
88+
run:
89+
shell: bash
6290
outputs:
6391
run_id: ${{ github.run_id }}
6492
version: ${{ env.VERSION }}

0 commit comments

Comments
 (0)