ci: fix action cache
This commit is contained in:
parent
ca06354f16
commit
50f7d4d7b9
2 changed files with 10 additions and 3 deletions
|
@ -16,11 +16,13 @@ jobs:
|
|||
id: cache-nix-develop
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: /nix/store
|
||||
path: |
|
||||
/nix/store
|
||||
/nix/var/nix/db
|
||||
key: nix-develop-${{ hashFiles('flake.*') }}
|
||||
- name: Fetch nix store
|
||||
if: steps.cache-nix-develop.outputs.cache-hit != 'true'
|
||||
run: nix develop .#npc
|
||||
run: nix develop .#npc --command true
|
||||
- name: Use develop environment
|
||||
uses: https://git.xinyang.life/xin/nix-develop@main
|
||||
with:
|
||||
|
@ -29,7 +31,11 @@ jobs:
|
|||
id: cache-sbt-dependency
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: npc/core
|
||||
path: |
|
||||
npc/core
|
||||
~/.cache/coursier
|
||||
~/.ivy2/cache
|
||||
~/.sbt
|
||||
key: core-${{ hashFiles('npc/core/build.sbt') }}
|
||||
- name: Fetch sbt dependencies
|
||||
if: steps.cache-sbt-dependency.outputs.cache-hit != 'true'
|
||||
|
|
|
@ -49,6 +49,7 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
packages.nemu = pkgs.callPackage ./nemu { am-kernels = self.packages.${system}.am-kernels; };
|
||||
packages.nemu-lib = pkgs.callPackage ./nemu { am-kernels = self.packages.${system}.am-kernels; defconfig = "riscv32-lib_defconfig"; };
|
||||
packages.abstract-machine = crossPkgs.callPackage ./abstract-machine { isa = "riscv"; platform = "nemu"; };
|
||||
|
|
Loading…
Reference in a new issue