Compress nix store to artifact filenames with special characters

This commit is contained in:
Tom Foster 2024-04-22 21:10:33 +01:00 committed by GitHub
parent 268d668107
commit a969163f79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,13 +61,17 @@ jobs:
- name: Populate `/nix/store`
run: nix develop --command true
- name: Package `/nix/store` for Artifact
run: |
tar -czf nix-store.tar.gz /nix/store
# Store the build environment in an artifact
- name: Cache build environment
uses: actions/upload-artifact@v4
with:
name: build-environment
path: |
/nix/store
nix-store.tar.gz
~/.cargo
$HOME/.direnvrc
/etc/nix/nix.conf
@ -93,6 +97,10 @@ jobs:
with:
name: build-environment
- name: Extract Nix Store Archive
run: |
tar -xzf nix-store.tar.gz -C /
- name: Sync repository
uses: actions/checkout@v4