From 3f4b573ab99934b584d12ed305360db5ec47e0c7 Mon Sep 17 00:00:00 2001 From: kekrby Date: Sun, 2 Oct 2022 17:22:58 +0300 Subject: [PATCH] CI: add binary cache --- .github/workflows/CI.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index cc5be50..2120940 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -15,6 +15,13 @@ jobs: uses: actions/checkout@v3 - name: "Install Nix" uses: cachix/install-nix-action@v17 + - name: "Set Up Binary Cache" + if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' + uses: cachix/cachix-action@v10 + with: + name: t2linux + authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} + pushFilter: "x86_64-linux.iso$" - name: Build run: | for iso in $(nix flake show --json | nix run nixpkgs#jq -- -r keys[]); do