Add riscv64 cross compilation to bsc-ci and hydra
This commit is contained in:
		
							parent
							
								
									00f5aad8e6
								
							
						
					
					
						commit
						2d125cabaf
					
				@ -17,7 +17,7 @@
 | 
				
			|||||||
      legacyPackages.${system} = pkgs;
 | 
					      legacyPackages.${system} = pkgs;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      hydraJobs = {
 | 
					      hydraJobs = {
 | 
				
			||||||
        inherit (self.legacyPackages.${system}.bsc-ci) test pkgs;
 | 
					        inherit (self.legacyPackages.${system}.bsc-ci) test pkgs cross;
 | 
				
			||||||
      };
 | 
					      };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      # propagate nixpkgs lib, so we can do bscpkgs.lib
 | 
					      # propagate nixpkgs lib, so we can do bscpkgs.lib
 | 
				
			||||||
 | 
				
			|||||||
@ -96,6 +96,10 @@ in bscPkgs // {
 | 
				
			|||||||
    tests = final.runCommand "ci-tests" { }
 | 
					    tests = final.runCommand "ci-tests" { }
 | 
				
			||||||
      "printf '%s\n' ${toString (collect isDerivation final.bsc-ci.test)} > $out";
 | 
					      "printf '%s\n' ${toString (collect isDerivation final.bsc-ci.test)} > $out";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    cross = prev.lib.genAttrs [ "riscv64" ] (target:
 | 
				
			||||||
 | 
					      final.pkgsCross.${target}.bsc-ci.pkgs
 | 
				
			||||||
 | 
					    );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    all = final.runCommand "ci-all" { }
 | 
					    all = final.runCommand "ci-all" { }
 | 
				
			||||||
    ''
 | 
					    ''
 | 
				
			||||||
      deps="${toString [ final.bsc-ci.pkgsList final.bsc-ci.tests ]}"
 | 
					      deps="${toString [ final.bsc-ci.pkgsList final.bsc-ci.tests ]}"
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user