We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suppose I have a hydra-like evaluator action that runs first.
This action produces all necessary .drv files for my workers.
.drv
Then I want to:
nix-store --export $(nix-store --query --requisites my.drv) \ | $compress > $GH_CACHE
And likewise on the receiving end:
$GH_CACHE > $decompress | nix-store --import &>/dev/null
Is there a way that magic-nix-cache can provide auxiliar facilities to make this manual pushing to the GH cache easy?
magic-nix-cache
Workaround / Solution(?):
- uses: actions/cache/save@v3 id: cache with: path: ${{ runner.temp }}/eval-store key: drv-pack-${{ runner.os }}-${{ runner.arch }}
mkdir -p "$EVALSTORE_EXPORT" # nix >= 2.6.1 for the --stdin flag to avoid "too many arguments" nix-store --query --requisites "$drv" | nix-store --stdin --export | zstd > "$EVALSTORE_EXPORT/$(basename $drv).zst"
and then
- uses: actions/cache/restore@v3 id: cache with: path: ${{ runner.temp }}/eval-store key: drv-pack-${{ runner.os }}-${{ runner.arch }} fail-on-cache-miss: true
cat "$EVALSTORE_IMPORT/$(basename $actionDrv).zst" | unzstd | nix-store --import &>/dev/null
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Suppose I have a hydra-like evaluator action that runs first.
This action produces all necessary
.drv
files for my workers.Then I want to:
And likewise on the receiving end:
Is there a way that
magic-nix-cache
can provide auxiliar facilities to make this manual pushing to the GH cache easy?Workaround / Solution(?):
and then
The text was updated successfully, but these errors were encountered: