summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorazhn <anthony.zh.oon@gmail.com>2025-09-23 20:00:59 +1000
committerazhn <anthony.zh.oon@gmail.com>2025-09-23 20:03:26 +1000
commitaa52e11c34e9482cc9f2605f4d2fbf9c9c567750 (patch)
treead091f692c14c6cccefe324c15483d550c034837 /.github
parent3eb646ea6baf5eb45bbd39cd7ad624cda0264554 (diff)
ci: Add test for building with i18n on and off
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/test.yml36
1 files changed, 36 insertions, 0 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index ceffde09e..78d409dc2 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -26,6 +26,7 @@ jobs:
- test-simd
- test-gtk
- test-sentry-linux
+ - test-i18n
- test-macos
- pinact
- prettier
@@ -701,6 +702,41 @@ jobs:
- name: test
run: nix develop -c zig build test --system ${{ steps.deps.outputs.deps }}
+ test-i18n:
+ strategy:
+ fail-fast: false
+ matrix:
+ i18n: ["true", "false"]
+ name: Build -Di18n=${{ matrix.simd }}
+ runs-on: namespace-profile-ghostty-sm
+ needs: test
+ env:
+ ZIG_LOCAL_CACHE_DIR: /zig/local-cache
+ ZIG_GLOBAL_CACHE_DIR: /zig/global-cache
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
+
+ - name: Setup Cache
+ uses: namespacelabs/nscloud-cache-action@a289cf5d2fcd6874376aa92f0ef7f99dc923592a # v1.2.17
+ with:
+ path: |
+ /nix
+ /zig
+
+ # Install Nix and use that to run our tests so our environment matches exactly.
+ - uses: cachix/install-nix-action@a809471b5c7c913aa67bec8f459a11a0decc3fce # v31.6.2
+ with:
+ nix_path: nixpkgs=channel:nixos-unstable
+ - uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16
+ with:
+ name: ghostty
+ authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
+
+ - name: Test
+ run: |
+ nix develop -c zig build -Di18n=${{ matrix.18n}}
+
zig-fmt:
if: github.repository == 'ghostty-org/ghostty'
runs-on: namespace-profile-ghostty-xsm