DEBUG: try to build ISO without volume as build store cache

This commit is contained in:
teutat3s 2022-02-25 13:59:04 +01:00
parent 67504a2560
commit d0e972f85f
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -95,31 +95,19 @@ name: Check
steps: steps:
- name: "Check" - name: "Check"
image: docker.nix-community.org/nixpkgs/nix-flakes:latest image: docker.nix-community.org/nixpkgs/nix-flakes:latest
privileged: true
volumes:
- name: nix-store-cache
path: /tmp/build-store
when: when:
event: event:
- pull_request - pull_request
- tag - tag
environment: environment:
NIX_FLAGS: "--store /tmp/build-store --print-build-logs --verbose" NIX_FLAGS: "--print-build-logs --verbose"
SUBCMD_FLAGS: "--eval-store local"
commands: commands:
- 'echo NIX_FLAGS: $NIX_FLAGS' - 'echo NIX_FLAGS: $NIX_FLAGS'
- 'echo SUBCMD_FLAGS: $SUBCMD_FLAGS' - nix $$NIX_FLAGS flake check
# DEBUG: try if nix build works with build store as cache
#- nix $$NIX_FLAGS flake check $$SUBCMD_FLAGS
- nix $$NIX_FLAGS build ".#nixosConfigurations.PubSolarOS.config.system.build.toplevel" - nix $$NIX_FLAGS build ".#nixosConfigurations.PubSolarOS.config.system.build.toplevel"
- nix $$NIX_FLAGS develop --command echo OK - nix $$NIX_FLAGS develop --command echo OK
- nix $$NIX_FLAGS develop --command bud --help - nix $$NIX_FLAGS develop --command bud --help
volumes:
- name: nix-store-cache
host:
path: "/var/nix/build-store"
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
@ -132,12 +120,10 @@ steps:
volumes: volumes:
- name: file-exchange - name: file-exchange
path: /var/nix/iso-cache path: /var/nix/iso-cache
- name: nix-store-cache
path: /tmp/build-store
commands: commands:
- | - |
nix --store /tmp/build-store --print-build-logs --verbose \ nix --print-build-logs --verbose \
develop --eval-store local --command \ develop --command \
bud build bootstrap bootstrapIso bud build bootstrap bootstrapIso
- cp $(readlink -f result)/iso/*.iso /var/nix/iso-cache/ - cp $(readlink -f result)/iso/*.iso /var/nix/iso-cache/
@ -170,12 +156,9 @@ trigger:
volumes: volumes:
- name: file-exchange - name: file-exchange
temp: {} temp: {}
- name: nix-store-cache
host:
path: "/var/nix/build-store"
--- ---
kind: signature kind: signature
hmac: 7ed23abadfcd0a30de070d90bb898a9b61b87a9547d9ccbb36ccca4d390db256 hmac: f39ee287ccf3c8cbc66a939f4a37cc9ecae986321448ec88992c4dbaeb551a24
... ...