Skip to content

Commit d8bfef1

Browse files
committed
CI: Remove the caching mechanism
After testing (everything works as excepted) and measuring the cache, we noticed that the time improvement is not worth the additional complexity. Hence, we decided to remove this cache but leave it in the commit history in case it becomes relevant in the future. This effectively reverts commit da11a13 "CI: Cache dependencies between runs".
1 parent da11a13 commit d8bfef1

File tree

2 files changed

+1
-39
lines changed

2 files changed

+1
-39
lines changed

.github/workflows/maven.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,7 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020
- uses: cachix/install-nix-action@v31
21-
- name: List pre-installed store paths
22-
run: find /nix/store -mindepth 1 -maxdepth 1 | sort > pre-installed
23-
- uses: actions/cache/restore@v4
24-
id: cache
25-
with:
26-
path: cache-closure.nar
27-
key: nix-${{ hashFiles('.github/workflows/maven.yml', 'default.nix', 'nix/**', 'pom.xml', 'local-maven-repo') }}
28-
- name: Import cache
29-
if: steps.cache.outputs.cache-hit == 'true'
30-
run: nix-store --import < cache-closure.nar
31-
- name: Build dependency cache
32-
if: steps.cache.outputs.cache-hit != 'true'
33-
run: nix-build --out-link dependencies nix/github-workflow-dependencies.nix
34-
- name: Export cache
35-
if: steps.cache.outputs.cache-hit != 'true'
36-
run: |
37-
find /nix/store -mindepth 1 -maxdepth 1 | sort > store-paths
38-
nix-store --export $(comm -13 pre-installed store-paths) > cache-closure.nar
39-
- uses: actions/cache/save@v4
40-
if: steps.cache.outputs.cache-hit != 'true'
41-
with:
42-
path: cache-closure.nar
43-
key: nix-${{ hashFiles('.github/workflows/maven.yml', 'default.nix', 'nix/**', 'pom.xml', 'local-maven-repo') }}
21+
# The dependencies could be cached if necessary. See PR #156 and da11a13c1451f5a52672fe494ac6e20116346865 for additional information.
4422
- name: Build
4523
run: nix-build
4624
- name: Upload Javadoc artifact

nix/github-workflow-dependencies.nix

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)