From 1e1e4d1cc90c75aa52a0334da93b66f11ed58c2b Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Thu, 25 Apr 2024 15:54:11 +0200 Subject: [PATCH] chore: cache build and runtime dependencies --- .forgejo/workflows/build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index e786677..cdd4852 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -22,19 +22,19 @@ jobs: - name: Build attic-server run: | nix build '.#nixosConfigurations.tanker.pkgs.attic-server' - attic push ${{ secrets.ATTIC_CACHE }} ./result + attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$') - name: Build attic-client run: | nix build '.#nixosConfigurations.tanker.pkgs.attic-client' - attic push ${{ secrets.ATTIC_CACHE }} ./result + attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$') - name: Build nginx run: | nix build '.#nixosConfigurations.tanker.config.services.nginx.package' - attic push ${{ secrets.ATTIC_CACHE }} ./result + attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$') - name: Build neovim run: | nix build '.#nixosConfigurations.tanker.config.home-manager.users.daniel.programs.neovim.finalPackage' - attic push ${{ secrets.ATTIC_CACHE }} ./result + attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$') build-arm64-linux: runs-on: nix-arm64 steps: @@ -48,12 +48,12 @@ jobs: - name: Build attic-client run: | nix build '.#nixosConfigurations.argon.pkgs.attic-client' - attic push ${{ secrets.ATTIC_CACHE }} ./result + attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$') - name: Build nginx run: | nix build '.#nixosConfigurations.argon.config.services.nginx.package' - attic push ${{ secrets.ATTIC_CACHE }} ./result + attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$') - name: Build neovim run: | nix build '.#nixosConfigurations.argon.config.home-manager.users.daniel.programs.neovim.finalPackage' - attic push ${{ secrets.ATTIC_CACHE }} ./result + attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')