File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 runs-on : ubuntu-latest
2424 steps :
2525 - uses : actions/checkout@v4
26- - uses : nixbuild/nix-quick-install-action@v32
27-
28- - name : Generate cache key
29- run : |
30- nixpkgs_hash=$(grep -Eom1 'archive/[0-9a-f]{40}\.tar\.gz' shell.nix | cut -d'/' -f2 | cut -d'.' -f1)
31- echo "NIXPKGS_HASH=$nixpkgs_hash" >> $GITHUB_ENV
32- echo "CACHE_KEY=${{ runner.os }}-$nixpkgs_hash" >> $GITHUB_ENV
33-
34- - uses : nix-community/cache-nix-action@v6
35- with :
36- primary-key : nix-${{ env.CACHE_KEY }}
37-
38- - name : Setup NIX_PATH
39- run : |
40- path=$(nix eval --impure --expr "(import (fetchTarball \"https://github.com/NixOS/nixpkgs/archive/${{ env.NIXPKGS_HASH }}.tar.gz\") {}).path")
41- echo "NIX_PATH=nixpkgs=$path" >> $GITHUB_ENV
42-
43- - name : Get cache directories
44- id : cache-dirs
45- run : |
46- nix-shell -p uv --run "
47- echo \"UV_CACHE=\$(uv cache dir)\"
48- " | tee -a $GITHUB_OUTPUT
49-
50- - name : Cache files and packages
51- uses : actions/cache@v4
26+ - uses : cachix/install-nix-action@v31
5227 with :
53- key : pkg-${{ env.CACHE_KEY }}-${{ hashFiles('uv.lock') }}
54- path : |
55- ${{ steps.cache-dirs.outputs.UV_CACHE }}
56- .venv
28+ nix_path : nixpkgs=channel:nixos-unstable
5729
5830 - name : Configure deployment tag
5931 id : tag
Original file line number Diff line number Diff line change 3131 uv
3232 ruff
3333 coreutils
34+ curl
3435 jq
3536 ( postgresql_17_jit . withPackages ( ps : [ ps . postgis ] ) )
3637 valkey
You can’t perform that action at this time.
0 commit comments