Skip to content

Commit 661528c

Browse files
committed
ci: bootstrap node-pty native build prerequisites
Install python and node-gyp via mise so pnpm install can rebuild node-pty on Linux where the stable package has no prebuilt binary. Drop the stale inject smoke step too: this branch no longer supports that deprecated ttyd-era command.
1 parent 68e38ae commit 661528c

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414
- uses: jdx/mise-action@v3
15+
# node-pty stable does not ship Linux prebuilds, so CI must support source builds.
16+
- name: Verify native build prerequisites
17+
run: |
18+
python3 --version
19+
node-gyp --version
1520
- run: pnpm install
1621
- run: pnpm exec playwright install --with-deps chromium webkit
1722
- run: pnpm test
1823
- run: pnpm run build:dist
1924
- run: pnpm run test:pw
20-
- name: Validate build pipeline (inject mode, no ttyd needed)
21-
run: echo '<html><head></head><body></body></html>' | npx tsx cli.ts inject > /dev/null
2225
- run: pnpm run check
2326
- run: pnpm run lint:ox
2427
- run: pnpm run lint:typos
@@ -40,6 +43,10 @@ jobs:
4043
with:
4144
fetch-depth: 0
4245
- uses: jdx/mise-action@v3
46+
- name: Verify native build prerequisites
47+
run: |
48+
python3 --version
49+
node-gyp --version
4350
- run: pnpm install
4451
- run: npx semantic-release
4552
env:

mise.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
node = "22"
33
npm = "latest"
44
pnpm = "latest"
5+
python = "3"
56
typos = "latest"
67
hk = "latest"
8+
"npm:node-gyp" = "latest"
79
ttyd = "1.7.7"

0 commit comments

Comments
 (0)