-
Notifications
You must be signed in to change notification settings - Fork 14
53 lines (46 loc) · 1.24 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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_*.*