mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
ci: swap magic-nix-cache with cachix
Cachix doesn't have rate limit issues like GitHub Actions does and I'd love to support the Nix community. Plus, I have experience with Cachix before and they've been so great.
This commit is contained in:
25
.github/workflows/nix.yml
vendored
25
.github/workflows/nix.yml
vendored
@ -10,28 +10,9 @@ jobs:
|
||||
uses: cachix/install-nix-action@v24
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
# Use cache to minimize build times.
|
||||
- name: Setup Nix cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- uses: cachix/cachix-action@v12
|
||||
with:
|
||||
diagnostic-endpoint: "" # disable telemetry
|
||||
name: ghostty
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
- name: Check Zig cache hash
|
||||
run: nix develop -c ./nix/build-support/check-zig-cache-hash.sh
|
||||
#
|
||||
# NOTE: Build is disabled until we resolve dependency build speeds.
|
||||
# build:
|
||||
# needs: check-zig-cache-hash
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Checkout code
|
||||
# uses: actions/checkout@v4
|
||||
# - name: Setup Nix
|
||||
# uses: cachix/install-nix-action@v24
|
||||
# with:
|
||||
# nix_path: nixpkgs=channel:nixos-unstable
|
||||
# - name: Setup Nix cache
|
||||
# uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
# with:
|
||||
# diagnostic-endpoint: "" # disable telemetry
|
||||
# - name: Run build
|
||||
# run: nix build .
|
||||
|
8
.github/workflows/release-tip.yml
vendored
8
.github/workflows/release-tip.yml
vendored
@ -47,12 +47,10 @@ jobs:
|
||||
- uses: cachix/install-nix-action@v24
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
|
||||
# Use cache to minimize build times.
|
||||
- name: Setup Nix cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- uses: cachix/cachix-action@v12
|
||||
with:
|
||||
diagnostic-endpoint: "" # disable telemetry
|
||||
name: ghostty
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
|
||||
# Setup Sparkle
|
||||
- name: Setup Sparkle
|
||||
|
46
.github/workflows/test.yml
vendored
46
.github/workflows/test.yml
vendored
@ -30,12 +30,10 @@ jobs:
|
||||
- uses: cachix/install-nix-action@v24
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
|
||||
# Use cache to minimize build times.
|
||||
- name: Setup Nix cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- uses: cachix/cachix-action@v12
|
||||
with:
|
||||
diagnostic-endpoint: "" # disable telemetry
|
||||
name: ghostty
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
|
||||
# Cross-compile the binary. We always use static building for this
|
||||
# because its the only way to access the headers.
|
||||
@ -56,12 +54,10 @@ jobs:
|
||||
- uses: cachix/install-nix-action@v24
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
|
||||
# Use cache to minimize build times.
|
||||
- name: Setup Nix cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- uses: cachix/cachix-action@v12
|
||||
with:
|
||||
diagnostic-endpoint: "" # disable telemetry
|
||||
name: ghostty
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
|
||||
- name: Test NixOS package build
|
||||
run: nix build .#ghostty
|
||||
@ -80,12 +76,10 @@ jobs:
|
||||
- uses: cachix/install-nix-action@v24
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
|
||||
# Use cache to minimize build times.
|
||||
- name: Setup Nix cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- uses: cachix/cachix-action@v12
|
||||
with:
|
||||
diagnostic-endpoint: "" # disable telemetry
|
||||
name: ghostty
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
|
||||
# GhosttyKit is the framework that is built from Zig for our native
|
||||
# Mac app to access.
|
||||
@ -162,12 +156,10 @@ jobs:
|
||||
- uses: cachix/install-nix-action@v24
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
|
||||
# Use cache to minimize build times.
|
||||
- name: Setup Nix cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- uses: cachix/cachix-action@v12
|
||||
with:
|
||||
diagnostic-endpoint: "" # disable telemetry
|
||||
name: ghostty
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
|
||||
- name: test
|
||||
run: nix develop -c zig build -Dapp-runtime=none test
|
||||
@ -188,11 +180,10 @@ jobs:
|
||||
- uses: cachix/install-nix-action@v24
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
# Use cache to minimize build times.
|
||||
- name: Setup Nix cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- uses: cachix/cachix-action@v12
|
||||
with:
|
||||
diagnostic-endpoint: "" # disable telemetry
|
||||
name: ghostty
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
- name: prettier check
|
||||
run: nix develop -c prettier --check .
|
||||
|
||||
@ -203,10 +194,9 @@ jobs:
|
||||
- uses: cachix/install-nix-action@v24
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-unstable
|
||||
# Use cache to minimize build times.
|
||||
- name: Setup Nix cache
|
||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- uses: cachix/cachix-action@v12
|
||||
with:
|
||||
diagnostic-endpoint: "" # disable telemetry
|
||||
name: ghostty
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
- name: alejandra check
|
||||
run: nix develop -c alejandra --check .
|
||||
|
Reference in New Issue
Block a user