Skip to content

Add production cache #28

Add production cache

Add production cache #28

Workflow file for this run

name: "Test"
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
with:
install_url: https://releases.nixos.org/nix/nix-2.19.1/install
extra_nix_config: |
accept-flake-config = true
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.BUILDER_TOKEN }}
- uses: gacts/run-and-post-run@v1
with:
run: nix flake check
post: |
ssh -v [email protected] -t exit
TARGET="ssh://[email protected]"
nix -v copy --to $TARGET .
nix -v copy --to $TARGET /nix/store/v8b2c1wzkb1fkm07h1821hshar60znql-infer-license-0.2.0
# took this filter list from cachix action
find /nix/store -mindepth 1 -maxdepth 1 -type d -not -name ".*" -not -name "*.{drv,drv.chroot,check,lock}" -print -exec nix -v copy --to $TARGET {} \;