mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
Merge pull request #1152 from mitchellh/cachix
ci: swap magic-nix-cache with cachix
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
|
uses: cachix/install-nix-action@v24
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
# Use cache to minimize build times.
|
- uses: cachix/cachix-action@v12
|
||||||
- name: Setup Nix cache
|
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
with:
|
with:
|
||||||
diagnostic-endpoint: "" # disable telemetry
|
name: ghostty
|
||||||
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
- name: Check Zig cache hash
|
- name: Check Zig cache hash
|
||||||
run: nix develop -c ./nix/build-support/check-zig-cache-hash.sh
|
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
|
- uses: cachix/install-nix-action@v24
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
- uses: cachix/cachix-action@v12
|
||||||
# Use cache to minimize build times.
|
|
||||||
- name: Setup Nix cache
|
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
with:
|
with:
|
||||||
diagnostic-endpoint: "" # disable telemetry
|
name: ghostty
|
||||||
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
|
|
||||||
# Setup Sparkle
|
# Setup Sparkle
|
||||||
- name: Setup Sparkle
|
- name: Setup Sparkle
|
||||||
|
56
.github/workflows/test.yml
vendored
56
.github/workflows/test.yml
vendored
@ -30,12 +30,10 @@ jobs:
|
|||||||
- uses: cachix/install-nix-action@v24
|
- uses: cachix/install-nix-action@v24
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
- uses: cachix/cachix-action@v12
|
||||||
# Use cache to minimize build times.
|
|
||||||
- name: Setup Nix cache
|
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
with:
|
with:
|
||||||
diagnostic-endpoint: "" # disable telemetry
|
name: ghostty
|
||||||
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
|
|
||||||
# Cross-compile the binary. We always use static building for this
|
# Cross-compile the binary. We always use static building for this
|
||||||
# because its the only way to access the headers.
|
# because its the only way to access the headers.
|
||||||
@ -43,10 +41,7 @@ jobs:
|
|||||||
run: nix develop -c zig build -Dstatic=true -Dapp-runtime=glfw -Dtarget=${{ matrix.target }}
|
run: nix develop -c zig build -Dstatic=true -Dapp-runtime=glfw -Dtarget=${{ matrix.target }}
|
||||||
|
|
||||||
build-nix:
|
build-nix:
|
||||||
strategy:
|
runs-on: ubuntu-latest
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
needs: test
|
needs: test
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
@ -56,12 +51,10 @@ jobs:
|
|||||||
- uses: cachix/install-nix-action@v24
|
- uses: cachix/install-nix-action@v24
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
- uses: cachix/cachix-action@v12
|
||||||
# Use cache to minimize build times.
|
|
||||||
- name: Setup Nix cache
|
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
with:
|
with:
|
||||||
diagnostic-endpoint: "" # disable telemetry
|
name: ghostty
|
||||||
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
|
|
||||||
- name: Test NixOS package build
|
- name: Test NixOS package build
|
||||||
run: nix build .#ghostty
|
run: nix build .#ghostty
|
||||||
@ -80,12 +73,10 @@ jobs:
|
|||||||
- uses: cachix/install-nix-action@v24
|
- uses: cachix/install-nix-action@v24
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
- uses: cachix/cachix-action@v12
|
||||||
# Use cache to minimize build times.
|
|
||||||
- name: Setup Nix cache
|
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
with:
|
with:
|
||||||
diagnostic-endpoint: "" # disable telemetry
|
name: ghostty
|
||||||
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
|
|
||||||
# GhosttyKit is the framework that is built from Zig for our native
|
# GhosttyKit is the framework that is built from Zig for our native
|
||||||
# Mac app to access.
|
# Mac app to access.
|
||||||
@ -150,10 +141,7 @@ jobs:
|
|||||||
run: Get-Content -Path ".\build.log"
|
run: Get-Content -Path ".\build.log"
|
||||||
|
|
||||||
test:
|
test:
|
||||||
strategy:
|
runs-on: ubuntu-latest
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -162,12 +150,10 @@ jobs:
|
|||||||
- uses: cachix/install-nix-action@v24
|
- uses: cachix/install-nix-action@v24
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
- uses: cachix/cachix-action@v12
|
||||||
# Use cache to minimize build times.
|
|
||||||
- name: Setup Nix cache
|
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
with:
|
with:
|
||||||
diagnostic-endpoint: "" # disable telemetry
|
name: ghostty
|
||||||
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
run: nix develop -c zig build -Dapp-runtime=none test
|
run: nix develop -c zig build -Dapp-runtime=none test
|
||||||
@ -188,11 +174,10 @@ jobs:
|
|||||||
- uses: cachix/install-nix-action@v24
|
- uses: cachix/install-nix-action@v24
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
# Use cache to minimize build times.
|
- uses: cachix/cachix-action@v12
|
||||||
- name: Setup Nix cache
|
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
with:
|
with:
|
||||||
diagnostic-endpoint: "" # disable telemetry
|
name: ghostty
|
||||||
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
- name: prettier check
|
- name: prettier check
|
||||||
run: nix develop -c prettier --check .
|
run: nix develop -c prettier --check .
|
||||||
|
|
||||||
@ -203,10 +188,9 @@ jobs:
|
|||||||
- uses: cachix/install-nix-action@v24
|
- uses: cachix/install-nix-action@v24
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
# Use cache to minimize build times.
|
- uses: cachix/cachix-action@v12
|
||||||
- name: Setup Nix cache
|
|
||||||
uses: DeterminateSystems/magic-nix-cache-action@main
|
|
||||||
with:
|
with:
|
||||||
diagnostic-endpoint: "" # disable telemetry
|
name: ghostty
|
||||||
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
- name: alejandra check
|
- name: alejandra check
|
||||||
run: nix develop -c alejandra --check .
|
run: nix develop -c alejandra --check .
|
||||||
|
Reference in New Issue
Block a user