Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Commit

Permalink
Intentionally drop meaningless cache (#5)
Browse files Browse the repository at this point in the history
* Intentionally drop meaningless cache

#3 (comment)

* This code also exists for cache
  • Loading branch information
kachick committed Jun 19, 2023
1 parent 754791a commit ac9ec25
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/ci-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,27 +40,11 @@ jobs:
needs: [get-version]
steps:
- uses: actions/checkout@v3
- name: 'Cache Nix store'
uses: actions/cache@v3
id: nix-cache
with:
path: /tmp/nixcache
key: ${{ runner.os }}-nix_${{ needs.get-version.outputs.current }}
- uses: cachix/install-nix-action@v21
with:
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/${{ needs.get-version.outputs.current }}.tar.gz
# https://github.com/cachix/install-nix-action/issues/56#issuecomment-1240991760
- name: 'Import Nix store cache'
if: ${{ steps.nix-cache.outputs.cache-hit == 'true' }}
run: 'nix-store --import < /tmp/nixcache'
- run: nix-build
if: ${{ steps.nix-cache.outputs.cache-hit != 'true' }}
- name: Log current versions
run: nix-shell --run 'task versions'
- name: 'Export Nix store cache'
if: ${{ steps.nix-cache.outputs.cache-hit != 'true' }}
run: |
readarray -t paths < <(find /nix/store -maxdepth 1 -name '*-*')
nix-store --export "${paths[@]}" > /tmp/nixcache
- name: Run main task
run: nix-shell --run 'task'

0 comments on commit ac9ec25

Please sign in to comment.