nixos/.github/workflows/test.yml
ulic-youthlic c8d5b218b0
Some checks are pending
Test Cachix / tests (Akun) (push) Waiting to run
Test Cachix / tests (Cape) (push) Waiting to run
Test Cachix / tests (Tytonidae) (push) Waiting to run
fix: Try to use lix installer in github ci
2025-11-08 00:39:41 +08:00

30 lines
1.3 KiB
YAML

name: "Test Cachix"
on:
workflow_dispatch:
pull_request:
branches:
- dev
push:
branches:
- dev
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
hostname: [Tytonidae, Akun, Cape]
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
install_url: "https://install.lix.systems/lix"
extra_nix_config: |
trusted-public-keys = youthlic.cachix.org-1:zkUZ/ZGGF5fZxvg5WO3K8XAsUAPFmQKWbnAFb3W5x+Y= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= niri.cachix.org-1:Wv0OmO7PsuocRKzfDoJ3mulSl7Z6oezYhGhR+3W2964= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= chaotic-nyx.cachix.org-1:HfnXSw4pj95iI/n17rIDy40agHj12WfF+Gqk6SonIT8= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
substituters = https://youthlic.cachix.org/ https://niri.cachix.org/ https://nix-community.cachix.org/ https://chaotic-nyx.cachix.org/ https://cache.nixos.org/
- uses: cachix/cachix-action@v14
with:
name: youthlic
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- run: nix build .#nixosConfigurations.${{ matrix.hostname }}.config.system.build.toplevel
- run: nix run nixpkgs#toybox -- echo OK