fix(daemon-core/cli): name the running ABI triplet when ghostty-vt bi… #36
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Ghostty VT Native | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'packages/ghostty-vt-node/**' | |
| - '.github/workflows/ghostty-vt-node.yml' | |
| workflow_dispatch: | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| jobs: | |
| native-build: | |
| runs-on: ${{ matrix.runner }} | |
| defaults: | |
| run: | |
| shell: bash | |
| strategy: | |
| fail-fast: false | |
| 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: ubuntu-latest | |
| platform: linux | |
| arch: x64 | |
| node-version: 25 | |
| - 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 | |
| - runner: macos-14 | |
| platform: darwin | |
| arch: arm64 | |
| node-version: 25 | |
| - runner: windows-latest | |
| platform: win32 | |
| arch: x64 | |
| node-version: 20 | |
| - runner: windows-latest | |
| platform: win32 | |
| arch: x64 | |
| node-version: 22 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v6 | |
| 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}" | |
| shopt -s nullglob | |
| staged=0 | |
| for pattern in \ | |
| "packages/ghostty-vt-node/build/Release/ghostty_vt_node.node" \ | |
| "packages/ghostty-vt-node/build/Release/libghostty-vt.*" \ | |
| "packages/ghostty-vt-node/build/Release/ghostty-vt.dll" | |
| do | |
| for file in $pattern; do | |
| [ -f "$file" ] || continue | |
| cp "$file" "dist-prebuilt/${GHOSTTY_TRIPLET}/" | |
| staged=1 | |
| done | |
| done | |
| ls -l "dist-prebuilt/${GHOSTTY_TRIPLET}" | |
| if [ "$staged" -ne 1 ]; then | |
| echo "No native artifacts were staged for ${GHOSTTY_TRIPLET}." | |
| exit 1 | |
| fi | |
| - name: Upload native artifact | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: ghostty-vt-node-${{ env.GHOSTTY_TRIPLET }} | |
| path: dist-prebuilt/${{ env.GHOSTTY_TRIPLET }} | |
| if-no-files-found: error |