ci: init
This commit is contained in:
parent
2cc992a181
commit
8e309c2573
2 changed files with 17 additions and 2 deletions
15
.gitea/workflows/abstract-machine-build.yml
Normal file
15
.gitea/workflows/abstract-machine-build.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
name: Build abstract machine with nix
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: nix
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
sparse-checkout: |
|
||||||
|
flake.nix
|
||||||
|
abstract-machine
|
||||||
|
- name: Build with nix
|
||||||
|
run: |
|
||||||
|
nix build -L .#abstract-machine
|
||||||
|
|
|
@ -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";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue