diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7ef73a6..89eae96 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -37,6 +37,14 @@ jobs: name: digitallyinduced skipPush: true + # # Initialize custom cachix for pushing + # - name: Custom Cachix Init + # uses: cachix/cachix-action@v15 + # with: + # name: CHANGE-ME + # authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + # skipPush: true + # Free up disk space before building - name: Free disk space run: | @@ -68,6 +76,12 @@ jobs: # Execute the tests. runghc $(make print-ghc-extensions) -i. -ibuild -iConfig Test/Main.hs + # Push to cachix after successful tests + # - name: Push to Cachix + # if: github.ref == 'refs/heads/main' + # run: | + # nix build --no-link --json .#nixosConfigurations.qa.config.system.build.toplevel | jq -r '.[].outputs.out' | cachix push CHANGE-ME + deploy: name: Deploy needs: tests diff --git a/flake.nix b/flake.nix index 624da5f..ed95d5b 100644 --- a/flake.nix +++ b/flake.nix @@ -143,4 +143,15 @@ }; }; + + # Add own cachix cache here to speed up builds. + # Uncomment the following lines and replace `CHANGE-ME` with your cachix cache name + # nixConfig = { + # extra-substituters = [ + # "https://CHANGE-ME.cachix.org" + # ]; + # extra-trusted-public-keys = [ + # "CHANGE-ME.cachix.org-1:CHANGE-ME-PUBLIC-KEY" + # ]; + # }; }