Skip to content

Build with FPM

Build with FPM #79

Workflow file for this run

name: Build Ghostty
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
inputs:
release_version:
description: If empty, rest with build artifact. If nonempty, release that version.
type: string
required: false
permissions:
contents: write
jobs:
build-ghostty:
name: Build Ghostty
strategy:
matrix:
ubuntu_version: ["22.04", "24.04", "24.10"]
runs-on: ubuntu-latest
container:
image: ubuntu:${{ matrix.ubuntu_version }}
steps:
- name: Checkout ghostty-ubuntu
uses: actions/checkout@v4
- name: Setup Build Env
run: ./setup-env.sh
- name: Build Ghostty
run: |
if [ "${{ matrix.ubuntu_version }}" = "22.04" ]; then
UBUNTU_DIST="jammy"
elif [ "${{ matrix.ubuntu_version }}" = "24.04" ]; then
UBUNTU_DIST="noble"
else
UBUNTU_DIST="oracular"
fi
./build-ghostty.sh "$UBUNTU_DIST"
- name: Upload Artifact
if: inputs.release_version == ''
uses: actions/upload-artifact@v4
with:
name: package-${{ matrix.ubuntu_version }}
retention-days: 7
path: |
ghostty_*.*