Skip to content

chore: bump version to v0.7.31 #17

chore: bump version to v0.7.31

chore: bump version to v0.7.31 #17

Workflow file for this run

name: Ghostty VT Native
on:
push:
branches: [main]
tags: ['v*']
paths:
- 'packages/ghostty-vt-node/**'
- '.github/workflows/ghostty-vt-node.yml'
- 'package-lock.json'
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
native-build:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
include:
- runner: ubuntu-latest
platform: linux
arch: x64
node-version: 20
- runner: ubuntu-latest
platform: linux
arch: x64
node-version: 22
- runner: ubuntu-latest
platform: linux
arch: x64
node-version: 24
- runner: macos-14
platform: darwin
arch: arm64
node-version: 20
- runner: macos-14
platform: darwin
arch: arm64
node-version: 22
- runner: macos-14
platform: darwin
arch: arm64
node-version: 24
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Setup Zig
uses: mlugg/setup-zig@v2
with:
version: latest
- name: Install dependencies
run: npm ci
- name: Build ghostty-vt-node
run: npm run build -w packages/ghostty-vt-node
- name: Compute artifact triplet
run: echo "GHOSTTY_TRIPLET=${{ matrix.platform }}-${{ matrix.arch }}-node$(node -p 'process.versions.modules')" >> "$GITHUB_ENV"
- name: Stage native artifact
run: |
mkdir -p "dist-prebuilt/${GHOSTTY_TRIPLET}"
find "packages/ghostty-vt-node/build/Release" -maxdepth 1 -type f \( -name 'ghostty_vt_node.node' -o -name 'libghostty-vt.*' \) -exec cp {} "dist-prebuilt/${GHOSTTY_TRIPLET}/" \;
ls -l "dist-prebuilt/${GHOSTTY_TRIPLET}"
- name: Upload native artifact
uses: actions/upload-artifact@v4
with:
name: ghostty-vt-node-${{ env.GHOSTTY_TRIPLET }}
path: dist-prebuilt/${{ env.GHOSTTY_TRIPLET }}
if-no-files-found: error