Skip to content

Commit c87957a

Browse files
committed
clear nix store cache
1 parent 6110990 commit c87957a

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

.github/workflows/test.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Install devbox
4444
uses: ./
4545
with:
46-
devbox-version: 0.9.1
46+
devbox-version: 0.13.6
4747
project-path: 'testdata'
4848
disable-nix-access-token: "${{ github.ref != 'refs/heads/main' }}"
4949

@@ -54,7 +54,7 @@ jobs:
5454
- name: Install devbox
5555
uses: ./
5656
with:
57-
devbox-version: 0.9.1
57+
devbox-version: 0.13.6
5858
refresh-cli: true
5959
project-path: 'testdata'
6060
sha256-checksum: 'f58202279237b9e0e7d69ef9334c7ca0628db31e5575f105dad6f41a171ebb6a'
@@ -69,7 +69,7 @@ jobs:
6969
uses: ./
7070
continue-on-error: true
7171
with:
72-
devbox-version: 0.9.1
72+
devbox-version: 0.13.6
7373
refresh-cli: true
7474
sha256-checksum: 'bad-sha'
7575
project-path: 'testdata'
@@ -85,8 +85,8 @@ jobs:
8585
- name: Install devbox
8686
uses: ./
8787
with:
88-
devbox-version: 0.9.1
88+
devbox-version: 0.13.6
8989
refresh-cli: true
90-
sha256-checksum: 'e7793acf6dadecc6a04eb64d6352665698c75f6c9f59fbe3efee3b04dbec294d'
90+
sha256-checksum: 'f58202279237b9e0e7d69ef9334c7ca0628db31e5575f105dad6f41a171ebb6a'
9191
project-path: 'testdata'
9292
disable-nix-access-token: "${{ github.ref != 'refs/heads/main' }}"

action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,15 @@ runs:
158158
shell: bash
159159
run: |
160160
devbox run --config=${{ inputs.project-path }} -- echo "Packages installed!"
161+
162+
- name: List nix store cache on failure
163+
shell: bash
164+
if: failure()
165+
env:
166+
GH_TOKEN: ${{ github.token }}
167+
run: |
168+
echo "It is likely that nix has shipped a backwards incompatible change. You can either specify the 'nix-version', or proceed to the actions tab and manually delete the cache:"
169+
gh cache list --key ${{ runner.os }}-${{ runner.arch }}-devbox --json key
161170
162171
- name: Save nix store cache
163172
if: inputs.enable-cache == 'true' && steps.cache-devbox-nix-store.outputs.cache-hit != 'true'

0 commit comments

Comments
 (0)