From fc5b3f0c24413c095c8bdcb57e7cfcaf620041bb Mon Sep 17 00:00:00 2001 From: Zuckerberg Date: Sun, 1 Oct 2023 16:32:18 -0600 Subject: [PATCH] use nix cache --- .gitea/workflows/test.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index ead4aea..fff99c9 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -15,6 +15,9 @@ jobs: uses: https://github.com/cachix/install-nix-action@v23 with: github_access_token: ${{ secrets.__GITHUB_TOKEN }} + extra_nix_config: | + trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= s0.koi-bebop.ts.net:OjbzD86YjyJZpCp9RWaQKANaflcpKhtzBMNP8I2aPUU= + substituters = https://cache.nixos.org/ http://s0.koi-bebop.ts.net:5000 - name: Install dependencies run: nix profile install nixpkgs#nodejs-18_x @@ -29,15 +32,9 @@ jobs: run: | ls ${{ gitea.workspace }} - # - name: Print nixpkgs version - # run: nix-instantiate --eval -E '(import {}).lib.version' - - # - run: nix-shell -p cowsay --run "cowsay test" - - run: nix run nixpkgs#cowsay -- hello - - name: Install dependencies - run: nix profile install nixpkgs#cowsay + - run: nix profile install nixpkgs#cowsay - run: cowsay testing - run: nix profile install nixpkgs#curl