-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (49 loc) · 1.89 KB
/
Copy pathcopilot-setup-steps.yml
File metadata and controls
58 lines (49 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
# Setup steps for the GitHub Copilot coding agent.
#
# GitHub runs the job named exactly `copilot-setup-steps` from this path before
# the agent's firewall is enabled, so engines that must be fetched from the
# network (XS, V8) can be pre-installed here. The job name and the
# `.github/workflows/` location are both required for Copilot to discover it.
#
# Installation is delegated to the repo's own maintained installer so this stays
# in sync with CI. It installs XS and V8 into ~/.engines/bin, which is where the
# benchmark harness (packages/benchmark/run-tests.sh) looks for them.
name: Copilot Setup Steps
on:
workflow_dispatch:
# Run on changes to this file so it can be validated in CI.
push:
paths:
- .github/workflows/copilot-setup-steps.yml
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
permissions:
contents: read
# Cancel in-progress runs for the same branch when a new run is started
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
# without this, setup-node errors on mismatched yarn versions
- run: corepack enable
- name: Use Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version-file: .node-version
cache: yarn
- name: Install dependencies
run: yarn install --immutable
# Pre-install the XS and V8 engines into ~/.engines using the repo's own
# installer (the same command CI runs), so they are available before the
# Copilot agent's firewall blocks the downloads.
- name: Install engines
run: yarn workspace @endo/benchmark run install-engines