Skip to content

Commit 73144c4

Browse files
authored
Merge pull request #156 from VariantSync/fix-CI-cache-restore
Fix CI cache restore
2 parents 07756a1 + 76f7b07 commit 73144c4

File tree

3 files changed

+21
-23
lines changed

3 files changed

+21
-23
lines changed

.github/workflows/maven.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,8 @@ jobs:
1717

1818
steps:
1919
- uses: actions/checkout@v4
20-
- name: Install Nix with cached packages
21-
uses: rikhuijzer/cache-install@v1.1.4
22-
with:
23-
key: nix-${{ hashFiles('.github/workflows/maven.yml', 'default.nix', 'nix/**', 'pom.xml', 'local-maven-repo') }}
24-
nix_file: nix/github-workflow-dependencies.nix
20+
- uses: cachix/install-nix-action@v31
21+
# The dependencies could be cached if necessary. See PR #156 and da11a13c1451f5a52672fe494ac6e20116346865 for additional information.
2522
- name: Build
2623
run: nix-build
2724
- name: Upload Javadoc artifact

default.nix

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,24 @@
33
system ? builtins.currentSystem,
44
pkgs ?
55
import sources.nixpkgs {
6-
overlays = [];
6+
overlays = [
7+
(final: previous: {
8+
defaultGemConfig = previous.defaultGemConfig // {
9+
jekyll-github-metadata = attrs: {
10+
dontBuild = false;
11+
patches = [
12+
(final.fetchpatch {
13+
url = "https://github.com/jekyll/github-metadata/commit/17cc5af5e1fd95d98d43676610cc8a47969350ab.patch";
14+
hash = "sha256-dUqvnYsjfG5xQIYS48B3xz0GLVYo2BrDAnYUafmDFKw=";
15+
relative = "lib";
16+
stripLen = 1;
17+
extraPrefix = "lib/jekyll-github-metadata/";
18+
})
19+
];
20+
};
21+
};
22+
})
23+
];
724
config = {};
825
inherit system;
926
},
@@ -93,7 +110,7 @@ pkgs.stdenvNoCC.mkDerivation rec {
93110
if buildGitHubPages
94111
then ''
95112
mvn javadoc:javadoc
96-
JEKYLL_ENV=production PAGES_REPO_NWO=VariantSync/DiffDetective JEKYLL_BUILD_REVISION= github-pages build
113+
JEKYLL_ENV=production PAGES_REPO_NWO=VariantSync/DiffDetective JEKYLL_BUILD_REVISION= PAGES_DISABLE_NETWORK=1 github-pages build
97114
rm -rf _site/target
98115
''
99116
else ""

nix/github-workflow-dependencies.nix

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

0 commit comments

Comments
 (0)