From 53ab72fa202852e8f64ffdf39b31231a60028176 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 21 Oct 2024 09:17:10 +0200 Subject: [PATCH] Switch to ZST for tarball It is faster then Gzip and available in MEEP FPGA cluster. --- .gitlab-ci.yml | 4 ++-- lagarto-ox.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c6e9563..e254767 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,7 +17,7 @@ build:lagarto-ox-tarball: - out=/ceph/home/gitlab-runner/public_html/nixos-riscv/ - fn=$(ls | head -1) - cp $fn $out/$fn - - rm -f $out/latest.tar.gz - - ln -s $out/$fn $out/latest.tar.gz + - rm -f $out/latest.tar.zst + - ln -s $out/$fn $out/latest.tar.zst - cd .. - rm result diff --git a/lagarto-ox.nix b/lagarto-ox.nix index d3c3d25..a34ac6a 100644 --- a/lagarto-ox.nix +++ b/lagarto-ox.nix @@ -625,10 +625,10 @@ installPhase = '' mkdir -p $out - tar czvf $out/${COMMIT}.tar.gz nixos-riscv + tar -I zstd -cvf $out/${COMMIT}.tar.zst nixos-riscv ''; - nativeBuildInputs = with final.buildPackages; [ rsync ]; + nativeBuildInputs = with final.buildPackages; [ rsync zstd ]; }; opensbi = prev.opensbi.overrideAttrs (old: rec {