File tree Expand file tree Collapse file tree 2 files changed +20
-5
lines changed
Expand file tree Collapse file tree 2 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 11name : Build
22on :
3+ schedule :
4+ - cron : " 0 0 * * *"
35 workflow_dispatch : {}
46 pull_request :
57 types : [opened, synchronize, reopened]
4850 run : ./setup.sh
4951
5052 - name : Build Ghostty
51- run : ./build.sh
53+ run : |
54+ if [ "${{ github.event_name }}" == "schedule" ]; then
55+ sed -i 's/GHOSTTY_VERSION="$(cat VERSION)"/GHOSTTY_VERSION="tip"/' build.sh
56+ fi
57+ ./build.sh
5258
5359 - name : Upload Artifact
5460 uses : actions/upload-artifact@v4
@@ -58,11 +64,11 @@ jobs:
5864 path : /tmp/ghostty-build/Ghostty-*-${{ matrix.arch }}.AppImage*
5965
6066 - name : Upload binaries to release
61- if : ${{ github.event_name == 'release' }}
67+ if : ${{ github.event_name == 'release' || github.event_name == 'schedule' }}
6268 uses : svenstaro/upload-release-action@v2
6369 with :
6470 repo_token : ${{ secrets.GITHUB_TOKEN }}
6571 file : /tmp/ghostty-build/Ghostty-*-${{ matrix.arch }}.AppImage*
66- tag : ${{ github.ref }}
72+ tag : ${{ github.event_name == 'release' && github. ref || 'tip' }}
6773 overwrite : true
6874 file_glob : true
Original file line number Diff line number Diff line change @@ -20,8 +20,15 @@ mkdir -p -- "${TMP_DIR}" "${APP_DIR}/usr" "${APP_DIR}/usr/lib" "${APP_DIR}/usr/s
2020
2121cd " ${TMP_DIR} "
2222
23- wget -q " https://release.files.ghostty.org/${GHOSTTY_VERSION} /ghostty-${GHOSTTY_VERSION} .tar.gz"
24- wget -q " https://release.files.ghostty.org/${GHOSTTY_VERSION} /ghostty-${GHOSTTY_VERSION} .tar.gz.minisig"
23+ if [ $GHOSTTY_VERSION == " tip" ]; then
24+ BUILD_DIR=" ghostty-source"
25+ wget -q " https://github.com/ghostty-org/ghostty/releases/download/tip/ghostty-source.tar.gz" -O ghostty-${GHOSTTY_VERSION} .tar.gz
26+ wget -q " https://github.com/ghostty-org/ghostty/releases/download/tip/ghostty-source.tar.gz.minisig" -O ghostty-${GHOSTTY_VERSION} .tar.gz.minisig
27+ else
28+ BUILD_DIR=" ghostty-${GHOSTTY_VERSION} "
29+ wget -q " https://release.files.ghostty.org/${GHOSTTY_VERSION} /ghostty-${GHOSTTY_VERSION} .tar.gz"
30+ wget -q " https://release.files.ghostty.org/${GHOSTTY_VERSION} /ghostty-${GHOSTTY_VERSION} .tar.gz.minisig"
31+ fi
2532
2633minisign -V -m " ghostty-${GHOSTTY_VERSION} .tar.gz" -P " ${PUB_KEY} " -s " ghostty-${GHOSTTY_VERSION} .tar.gz.minisig"
2734
@@ -47,6 +54,8 @@ zig build \
4754 -Dcpu=baseline \
4855 -Dpie=true \
4956 -Demit-docs \
57+ -Dgtk-wayland=true \
58+ -Dgtk-x11=true \
5059 -Dversion-string=" ${GHOSTTY_VERSION} "
5160# --system /tmp/offline-cache/p \
5261
You can’t perform that action at this time.
0 commit comments