name: Benchmark Cache on: push: branches: - main paths-ignore: - '**/*.md' - '**/*.yml' - 'npm/**' - 'website/**' - 'crates/oxc/**' - 'crates/oxc_cli/**' - 'crates/oxc_formatter/**' - 'crates/oxc_linter/**' - 'crates/oxc_napi/**' - 'crates/oxc_query/**' - 'crates/oxc_type_synthesis/**' - 'crates/oxc_wasm/**' jobs: cache: # Warm cache factory for the benchmark job name: Benchmark Cache strategy: fail-fast: false matrix: include: - os: windows-latest - os: ubuntu-latest runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 - name: Install Rust Toolchain uses: ./.github/actions/rustup with: shared-key: benchmark save-cache: true - name: Build Benchmark run: cargo build --release -p oxc_benchmark