ci: init
All checks were successful
Build abstract machine with nix / build (push) Successful in 18m43s

This commit is contained in:
xinyangli 2024-03-25 20:46:13 +08:00
parent 2cc992a181
commit b7b65a41a5
Signed by: xin
SSH key fingerprint: SHA256:qZ/tzd8lYRtUFSrfBDBMcUqV4GHKxqeqRA3huItgvbk
2 changed files with 21 additions and 2 deletions

View file

@ -0,0 +1,19 @@
name: Build abstract machine with nix
on: [push]
jobs:
build:
runs-on: nix
steps:
- uses: https://github.com/cachix/cachix-action@v14
with:
name: ysyx
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- uses: actions/checkout@v4
sparse-checkout: |
flake.nix
abstract-machine
- name: Build with nix
run: |
nix build -L .#abstract-machine

View file

@ -20,10 +20,10 @@
}; };
in in
{ {
packages.nemu = pkgs.callPackage ./nemu { am-kernels = self.packages.${system}.am-kernels-cmake; }; packages.nemu = pkgs.callPackage ./nemu { am-kernels = self.packages.${system}.am-kernels; };
packages.abstract-machine = crossPkgs.callPackage ./abstract-machine { isa = "riscv"; platform = "nemu"; }; packages.abstract-machine = crossPkgs.callPackage ./abstract-machine { isa = "riscv"; platform = "nemu"; };
packages.am-kernels-cmake = crossPkgs.stdenv.mkDerivation rec { packages.am-kernels = crossPkgs.stdenv.mkDerivation rec {
pname = "am-kernels-cmake"; pname = "am-kernels-cmake";
version = "2024.02.18"; version = "2024.02.18";