diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml index e94082802f..7075ca38ed 100644 --- a/.github/workflows/copilot-setup-steps.yml +++ b/.github/workflows/copilot-setup-steps.yml @@ -29,6 +29,10 @@ jobs: - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 with: node-version: "24" + - uses: actions-rust-lang/setup-rust-toolchain@ac90e63697ac2784f4ecfe2964e1a285c304003a # v1 + with: + target: wasm32-unknown-unknown + cache-key: test-ubuntu-copilot-setup-steps - name: Install wasm-bindgen uses: taiki-e/install-action@14083e64ac8cf1f5e54356df00b9779b23e192a1 # v2 with: @@ -41,22 +45,9 @@ jobs: - name: Build id: build run: | - pnpm turbo build --summarize + pnpm turbo build --filter !benchx_cli --filter "!@lynx-js/benchmark-*" --summarize env: NODE_OPTIONS: --max-old-space-size=6144 - continue-on-error: true - - name: Setup Rust and retry build if failed - if: steps.build.outcome == 'failure' - uses: actions-rust-lang/setup-rust-toolchain@ac90e63697ac2784f4ecfe2964e1a285c304003a # v1 - with: - target: wasm32-unknown-unknown - cache-key: test-ubuntu-copilot-setup-steps - - name: Retry Build - if: steps.build.outcome == 'failure' - run: | - pnpm turbo build --summarize - env: - NODE_OPTIONS: --max-old-space-size=32768 - name: Test essential runtime dependencies run: | pnpm dprint fmt diff --git a/.github/copilot-instructions.md b/AGENTS.md similarity index 98% rename from .github/copilot-instructions.md rename to AGENTS.md index 92649fdf14..58c6cfe597 100644 --- a/.github/copilot-instructions.md +++ b/AGENTS.md @@ -1,4 +1,4 @@ -# Lynx Stack - Copilot Coding Agent Instructions +# Lynx Stack This repository contains the **core JavaScript stack** of Lynx, including ReactLynx, Rspeedy, Lynx for Web, and testing utilities. This document provides essential information for coding agents to work efficiently with this codebase. @@ -19,6 +19,8 @@ This repository contains the **core JavaScript stack** of Lynx, including ReactL ```bash # Install dependencies (required first) +npm install -g corepack +corepack enable pnpm install --frozen-lockfile # Verify toolchain @@ -33,7 +35,7 @@ rustc --version # Required for native bindings # Full build (REQUIRED before running tests) pnpm turbo build -# Development build with watching (TypeScript only) +# Development build with watching pnpm turbo watch build ```