Repository navigation
97 lines (87 loc) · 2.46 KB
/
Copy pathbuild-ghostty.yml
File metadata and controls
97 lines (87 loc) · 2.46 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Build Ghostty
on:
workflow_dispatch:
push:
paths:
- "native/ghostty/**"
- ".github/workflows/build-ghostty.yml"
- "!native/ghostty/**/*.dll"
- "!native/ghostty/**/*.so"
- "!native/ghostty/**/*.dylib"
- "!native/ghostty/**/*.sha256"
pull_request:
paths:
- "native/ghostty/**"
- ".github/workflows/build-ghostty.yml"
- "!native/ghostty/**/*.dll"
- "!native/ghostty/**/*.so"
- "!native/ghostty/**/*.dylib"
- "!native/ghostty/**/*.sha256"
permissions:
contents: read
concurrency:
group: build-ghostty-${{ github.ref }}
cancel-in-progress: true
jobs:
native:
name: libghostty-vt ${{ matrix.rid }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- rid: win-x64
os: windows-latest
- rid: win-arm64
os: windows-latest
- rid: linux-x64
os: ubuntu-24.04
- rid: linux-arm64
os: ubuntu-24.04
- rid: osx-arm64
os: macos-14
- rid: osx-x64
os: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install llvm-strip
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends llvm
- name: Build libghostty-vt
shell: pwsh
run: >
./native/ghostty/Build-Ghostty.ps1
-Rid ${{ matrix.rid }}
-InstallZig
-SkipHashCheck
- name: Upload ${{ matrix.rid }}
uses: actions/upload-artifact@v4
with:
name: libghostty-vt-${{ matrix.rid }}
path: native/ghostty/${{ matrix.rid }}
if-no-files-found: error
package:
name: Collect libghostty-vt artifacts
needs: native
runs-on: ubuntu-24.04
steps:
- name: Download RID artifacts
uses: actions/download-artifact@v4
with:
pattern: libghostty-vt-*
path: artifacts/libghostty-vt
merge-multiple: false
- name: Write SHA-256 manifest
run: |
find artifacts/libghostty-vt -type f ! -name '*.sha256' -print0 |
sort -z |
xargs -0 sha256sum > artifacts/libghostty-vt/SHA256SUMS
- name: Upload combined natives
uses: actions/upload-artifact@v4
with:
name: libghostty-vt
path: artifacts/libghostty-vt
if-no-files-found: error