fix: run renderer build before Nitro-V3 so vite.config finds the SDK

This commit is contained in:
openhands committed 2026-07-20 19:02:52 +02:00
1 parent e2a2b7162d
commit 2af0fc3447
1 file changed
+19 -19
+19 -19
View File
@@ -120,25 +120,6 @@ jobs:
fi
echo "catalogus: $(git -C "$WORK/src/catalogus" rev-parse --short HEAD 2>/dev/null)" | tee -a "$WORK/components.txt"
- name: Nitro-V3
if: steps.check.outputs.changed == 'true'
run: |
set -e
S="$CACHE_DIR/nitro"; mkdir -p "$S"
if [ "${{ steps.check.outputs.nitro_ref }}" != "$(cat "$S/ref" 2>/dev/null)" ]; then
git clone --depth 1 https://github.com/duckietm/Nitro-V3.git "$WORK/src/nitro" 2>/dev/null \
|| git -C "$WORK/src/nitro" pull --ff-only 2>/dev/null
cd "$WORK/src/nitro"
yarn install --frozen-lockfile --prefer-offline 2>&1 || yarn install 2>&1
yarn build
rm -rf "$S/dist"; mkdir -p "$S/dist"; cp -r dist/* "$S/dist/" 2>/dev/null || true
echo "${{ steps.check.outputs.nitro_ref }}" > "$S/ref"
else
echo "Nitro unchanged — reused cached dist"
fi
mkdir -p "$WORK/out/nitro"; cp -r "$S/dist/"* "$WORK/out/nitro/" 2>/dev/null || true
echo "nitro: $(git -C "$WORK/src/nitro" rev-parse --short HEAD 2>/dev/null || echo cached)" | tee -a "$WORK/components.txt"
- name: Nitro-Render-V3
if: steps.check.outputs.changed == 'true'
run: |
@@ -161,6 +142,25 @@ jobs:
mkdir -p "$WORK/out/render"; cp -r "$S/files/"* "$WORK/out/render/" 2>/dev/null || true
echo "render: $(git -C "$RENDER_DIR" rev-parse --short HEAD 2>/dev/null || echo cached)" | tee -a "$WORK/components.txt"
- name: Nitro-V3
if: steps.check.outputs.changed == 'true'
run: |
set -e
S="$CACHE_DIR/nitro"; mkdir -p "$S"
if [ "${{ steps.check.outputs.nitro_ref }}" != "$(cat "$S/ref" 2>/dev/null)" ]; then
git clone --depth 1 https://github.com/duckietm/Nitro-V3.git "$WORK/src/nitro" 2>/dev/null \
|| git -C "$WORK/src/nitro" pull --ff-only 2>/dev/null
cd "$WORK/src/nitro"
yarn install --frozen-lockfile --prefer-offline 2>&1 || yarn install 2>&1
yarn build
rm -rf "$S/dist"; mkdir -p "$S/dist"; cp -r dist/* "$S/dist/" 2>/dev/null || true
echo "${{ steps.check.outputs.nitro_ref }}" > "$S/ref"
else
echo "Nitro unchanged — reused cached dist"
fi
mkdir -p "$WORK/out/nitro"; cp -r "$S/dist/"* "$WORK/out/nitro/" 2>/dev/null || true
echo "nitro: $(git -C "$WORK/src/nitro" rev-parse --short HEAD 2>/dev/null || echo cached)" | tee -a "$WORK/components.txt"
- name: Polaris Emulator
if: steps.check.outputs.changed == 'true'
run: |