Skip to content

Commit 86f02b7

Browse files
author
psadi
committed
added ci
1 parent 47197d8 commit 86f02b7

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Build Ghostty AppImage
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
build:
16+
name: Build Ghostty
17+
runs-on: ubuntu-latest
18+
container:
19+
image: ubuntu:24.04
20+
steps:
21+
- name: Checkout ghostty-appimage
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Build Env
25+
run: ./setup-env.sh
26+
27+
- name: Build Ghostty
28+
run: just setup compile extract
29+
30+
- name: Upload Artifact
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: Ghostty_AppImage
34+
retention-days: 7
35+
path: Ghostty-*.AppImage

setup-env.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
# Sets up the environment to build Ghostty on Ubuntu
4+
5+
set -e
6+
7+
DEBIAN_FRONTEND="noninteractive"
8+
ZIG_VERSION="0.13.0"
9+
10+
# Install Build Tools
11+
apt-get -qq update && apt-get -qq -y install build-essential libonig-dev libbz2-dev lintian lsb-release pandoc wget just
12+
13+
wget -q "https://github.com/jedisct1/minisign/releases/download/0.11/minisign-0.11-linux.tar.gz"
14+
tar -xzf minisign-0.11-linux.tar.gz
15+
mv minisign-linux/x86_64/minisign /usr/local/bin
16+
rm -r minisign-linux
17+
18+
wget -q "https://ziglang.org/download/$ZIG_VERSION/zig-linux-x86_64-$ZIG_VERSION.tar.xz"
19+
tar -xf "zig-linux-x86_64-$ZIG_VERSION.tar.xz" -C /opt
20+
rm "zig-linux-x86_64-$ZIG_VERSION.tar.xz"
21+
ln -s "/opt/zig-linux-x86_64-$ZIG_VERSION/zig" /usr/local/bin/zig
22+
23+
# Install Ghostty Dependencies
24+
apt-get -qq -y install libgtk-4-dev libadwaita-1-dev

0 commit comments

Comments
 (0)