diff options
author | Thomas Watson <twatson52@icloud.com> | 2022-03-12 17:30:10 -0600 |
---|---|---|
committer | Thomas Watson <twatson52@icloud.com> | 2022-03-12 17:30:10 -0600 |
commit | 49d6d33907dc49a8e54bf9b04c69046d0f55dbed (patch) | |
tree | 26489d56a2d41757583dfe278159dc72b0a6e865 /.github | |
parent | 7cc3385e1801b6dc1f2072aecedba9cf7327d57b (diff) | |
download | nixlib-49d6d33907dc49a8e54bf9b04c69046d0f55dbed.tar nixlib-49d6d33907dc49a8e54bf9b04c69046d0f55dbed.tar.gz nixlib-49d6d33907dc49a8e54bf9b04c69046d0f55dbed.tar.bz2 nixlib-49d6d33907dc49a8e54bf9b04c69046d0f55dbed.tar.lz nixlib-49d6d33907dc49a8e54bf9b04c69046d0f55dbed.tar.xz nixlib-49d6d33907dc49a8e54bf9b04c69046d0f55dbed.tar.zst nixlib-49d6d33907dc49a8e54bf9b04c69046d0f55dbed.zip |
add caching to installer workflow
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/installer.yml | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/.github/workflows/installer.yml b/.github/workflows/installer.yml index bc67b0d793c7..f4f8ec9d78fc 100644 --- a/.github/workflows/installer.yml +++ b/.github/workflows/installer.yml @@ -12,16 +12,31 @@ jobs: - uses: cachix/install-nix-action@v16 with: + install_url: https://releases.nixos.org/nix/nix-2.7.0/install nix_path: nixpkgs=channel:nixos-unstable extra_nix_config: | + auto-optimise-store = true keep-outputs = true keep-derivations = true + - run: systemctl stop nix-daemon + + - uses: actions/cache@v2 + with: + key: installer + path: /nix + - name: build installer run: | - nix-build -A installer-bootstrap-cross -o installer -j2 + systemctl start nix-daemon + nix-build -A installer-bootstrap-cross -j2 + nix-collect-garbage + cp result/iso/*.iso . + RESULT=`readlink -f result` + rm result + nix-store --delete $RESULT - uses: actions/upload-artifact@v3 with: name: installer - path: installer/iso/*.iso + path: *.iso |