Skip to content

Commit 76c3875

Browse files
author
psadi
committed
added ci
1 parent 47197d8 commit 76c3875

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
build: generate appimage
3+
4+
on:
5+
workflow_dispatch:
6+
7+
job:
8+
build-ghostty:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout ghostty-appimage
12+
uses: actions/checkout@v4
13+
14+
- name: Setup Build Env
15+
run: ./setup-env.sh
16+
17+
- name: Build Ghostty
18+
run: just setup compile extract
19+
20+
- name: Upload Artifact
21+
uses: actions/upload-artifact@v4
22+
with:
23+
retention-days: 7
24+
path: Ghostty-*.AppImage

set-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)