ci: fix action cache
All checks were successful
Build abstract machine with nix / build-abstract-machine (push) Successful in 1m48s
Run CTests within npc / npc-test (push) Successful in 2m34s

This commit is contained in:
xinyangli 2024-04-05 11:30:52 +08:00
parent ca06354f16
commit 50f7d4d7b9
Signed by: xin
SSH key fingerprint: SHA256:qZ/tzd8lYRtUFSrfBDBMcUqV4GHKxqeqRA3huItgvbk
2 changed files with 10 additions and 3 deletions

View file

@ -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'

View file

@ -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"; };