From bc7173ba5b782736bae9a9dd9378c33c23a8b562 Mon Sep 17 00:00:00 2001 From: leejet Date: Wed, 27 May 2026 21:09:20 +0800 Subject: [PATCH] fix: preserve frontend tooling in ROCm CI build --- .github/workflows/build.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b08e56c22..df4c07d45 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -711,16 +711,6 @@ jobs: with: submodules: recursive - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: 20 - - - name: Setup pnpm - uses: pnpm/action-setup@v4 - with: - version: 10.15.1 - - name: ccache uses: ggml-org/ccache-action@v1.2.16 with: @@ -778,6 +768,18 @@ jobs: echo PATH=$PATH:$ROCM_PATH/bin >> $GITHUB_ENV echo LD_LIBRARY_PATH=$ROCM_PATH/lib:$ROCM_PATH/llvm/lib:$ROCM_PATH/lib/rocprofiler-systems >> $GITHUB_ENV + # setup-node installs into /opt/hostedtoolcache, which is removed above. + # Keep Node/pnpm setup after disk cleanup so the server frontend can be embedded. + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 10.15.1 + - name: Build id: cmake_build run: |