Update build.yml to build for amd64 and arm64 #128
Workflow file for this run
This file contains 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: Build Ghostty | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build-ghostty: | |
name: Build Ghostty | |
strategy: | |
matrix: | |
ubuntu_version: ["22.04", "24.04", "24.10"] | |
architecture: ["amd64", "arm64"] | |
#exclude: | |
#- ubuntu_version: "nothing" | |
#- architecture: "still nothing" | |
runs-on: ubuntu-latest | |
container: | |
image: ubuntu:${{ matrix.ubuntu_version }} | |
steps: | |
- name: Checkout ghostty-ubuntu | |
uses: actions/checkout@v4 | |
- name: Setup QEMU for arm64 (if required) | |
if: matrix.architecture == 'arm64' | |
uses: docker/setup-qemu-action@v2 | |
with: | |
platforms: arm64 | |
- name: Setup Build Env | |
run: ./setup-env.sh | |
- name: Build Ghostty | |
run: | | |
echo "building for Ubuntu ${{ matrix.ubuntu_version }} and architecture ${{ matrix.ubuntu_version }}" | |
./build-ghostty.sh | |
- name: Lint .deb Package | |
run: | | |
echo "lint package for ${{ matrix.architecture }}" | |
lintian ghostty_*.deb || true # Lintian shouldn't fail our build yet | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: package-${{ matrix.ubuntu_version }}-${{ matrix.architecture }} | |
retention-days: 7 | |
path: ghostty_*.deb |