Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update build.yml to build for amd64 and arm64 #35

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,39 @@ jobs:
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: ./build-ghostty.sh
run: |
echo "building for Ubuntu ${{ matrix.ubuntu_version }} and architecture ${{ matrix.ubuntu_version }}"
./build-ghostty.sh

- name: Lint .deb Package
run: lintian ghostty_*.deb || true # Lintian shouldn't fail our build yet
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 }}
name: package-${{ matrix.ubuntu_version }}-${{ matrix.architecture }}
retention-days: 7
path: ghostty_*.deb
Loading