Deployment and lifecycle management for Nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

seed-ci: cache inputs, make deps cache optional

+14 -4
+1 -1
.woodpecker/build.yaml
··· 15 15 - name: build ${system} 16 16 image: bash 17 17 commands: 18 - - nix develop .# --command seed-ci --attic-upload=true --attic-use=true --nom=false --sower-seed=true --system ${system} 18 + - nix develop .# --command seed-ci --attic-upload=true --attic-use=true --cache-build-deps=true --nom=false --sower-seed=true --system ${system} 19 19 environment: 20 20 ATTIC_KEY: 21 21 from_secret: ATTIC_KEY
+13 -3
bin/seed-ci
··· 81 81 } 82 82 } 83 83 84 - export def upload-configs [--attic-cache: string] { 84 + export def upload-configs [--attic-cache: string, --cache-build-deps = false, --cache-inputs = false] { 85 85 let configs = $in 86 86 87 87 $configs | reduce --fold [] { |c, acc| ··· 189 189 } 190 190 } 191 191 192 - def main [--attic-upload = true, --attic-use = false, --eval-only, --nom = true, --sower-seed = false, --system: string, --threads: int = 8] { 192 + def main [ 193 + --attic-upload = true, 194 + --attic-use = false, 195 + --cache-build-deps = false, 196 + --cache-inputs = true, 197 + --eval-only, 198 + --nom = true, 199 + --sower-seed = false, 200 + --system: string, 201 + --threads: int = 8 202 + ] { 193 203 let attic_url = $env.ATTIC_URL? 194 204 let attic_cache = $env.ATTIC_CACHE? 195 205 let attic_token = $env.ATTIC_KEY? ··· 211 221 let built_seeds = $seeds | build-configs --threads $threads 212 222 213 223 if $attic_upload { 214 - $built_seeds | upload-configs --attic-cache $attic_cache 224 + $built_seeds | upload-configs --attic-cache $attic_cache --cache-build-deps $cache_build_deps --cache-inputs $cache_inputs 215 225 } 216 226 217 227 if $sower_seed {