From 6554f87b626d5c3f12b2f45a6e4dfc0aaea4520f Mon Sep 17 00:00:00 2001 From: matt1432 Date: Mon, 25 Dec 2023 02:57:07 -0500 Subject: [PATCH] feat(ci): build all flake outputs to cachix --- .forgejo/workflows/cachix.yml | 27 +++++++++++++++++++++++++++ common/modules/cachix.nix | 4 ++++ 2 files changed, 31 insertions(+) create mode 100644 .forgejo/workflows/cachix.yml diff --git a/.forgejo/workflows/cachix.yml b/.forgejo/workflows/cachix.yml new file mode 100644 index 0000000..8641c46 --- /dev/null +++ b/.forgejo/workflows/cachix.yml @@ -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 diff --git a/common/modules/cachix.nix b/common/modules/cachix.nix index 048da48..9c7c6fc 100644 --- a/common/modules/cachix.nix +++ b/common/modules/cachix.nix @@ -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=" ]; }; };