feat(ci): build all flake outputs to cachix
This commit is contained in:
parent
c9b4ed5f72
commit
6554f87b62
2 changed files with 31 additions and 0 deletions
27
.forgejo/workflows/cachix.yml
Normal file
27
.forgejo/workflows/cachix.yml
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: Binary Cache
|
||||
|
||||
on: [push, pull_request, workflow_dispatch]
|
||||
|
||||
jobs:
|
||||
nix:
|
||||
name: "Build"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: https://github.com/actions/checkout@v3
|
||||
with:
|
||||
submodules: recursive
|
||||
|
||||
- name: Setup-Nix
|
||||
uses: https://github.com/cachix/install-nix-action@v24
|
||||
- uses: https://github.com/yaxitech/nix-install-pkgs-action@v3
|
||||
with:
|
||||
packages: "nixpkgs#nixci"
|
||||
- uses: https://github.com/cachix/cachix-action@v12
|
||||
with:
|
||||
name: archives
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
|
||||
- name: Build configs
|
||||
run: |
|
||||
nixci
|
|
@ -14,6 +14,8 @@
|
|||
"https://viperml.cachix.org"
|
||||
# Caddy
|
||||
"https://caddycf.cachix.org"
|
||||
# Personal config cache
|
||||
"https://archives.cachix.org"
|
||||
];
|
||||
trusted-public-keys = [
|
||||
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
|
||||
|
@ -27,6 +29,8 @@
|
|||
"viperml.cachix.org-1:qZhKBMTfmcLL+OG6fj/hzsMEedgKvZVFRRAhq7j8Vh8="
|
||||
# Caddy
|
||||
"caddycf.cachix.org-1:6vbQaeiec/zKv9XfEwi9yWVCe7opbeJMu6w81UEXugY="
|
||||
# Personal config cache
|
||||
"archives.cachix.org-1:6fvCc0qfKnnYVUmNw0TeT4qH/ZNAGLOzw7SlgWN5bV0="
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue