flake: expose some packages to be built by github ci
This commit is contained in:
parent
1f8b0bd54c
commit
069708264d
2 changed files with 59 additions and 3 deletions
40
.github/workflows/cachix.yml
vendored
40
.github/workflows/cachix.yml
vendored
|
|
@ -1,12 +1,12 @@
|
||||||
name: Check
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
linux:
|
check:
|
||||||
name: Evaluate and build flake
|
name: Check flake
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.4
|
- uses: actions/checkout@v2.3.4
|
||||||
|
|
@ -19,3 +19,37 @@ jobs:
|
||||||
name: lava
|
name: lava
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
- run: nix flake check --keep-going --verbose
|
- run: nix flake check --keep-going --verbose
|
||||||
|
build:
|
||||||
|
name: Build linux-lava for x86_64-linux
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.3.4
|
||||||
|
- uses: cachix/install-nix-action@v13
|
||||||
|
with:
|
||||||
|
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.5pre20211026_5667822/install
|
||||||
|
extra_nix_config: experimental-features = nix-command flakes
|
||||||
|
- uses: cachix/cachix-action@v10
|
||||||
|
with:
|
||||||
|
name: lava
|
||||||
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
|
- run: nix build -L .#linux-lava
|
||||||
|
|
||||||
|
build-nix:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Build nixUnstable for aarch64-linux
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2.1.0
|
||||||
|
- uses: dbhi/qus/action@main
|
||||||
|
with:
|
||||||
|
targets: arm aarch64
|
||||||
|
- uses: cachix/install-nix-action@v13
|
||||||
|
with:
|
||||||
|
install_url: https://github.com/numtide/nix-unstable-installer/releases/download/nix-2.5pre20211026_5667822/install
|
||||||
|
extra_nix_config: |
|
||||||
|
extra-platforms = aarch64-linux arm-linux
|
||||||
|
experimental-features = nix-command flakes
|
||||||
|
- uses: cachix/cachix-action@v10
|
||||||
|
with:
|
||||||
|
name: lava
|
||||||
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
|
- run: nix build -L .#packages.aarch64-linux.nixUnstable
|
||||||
|
|
|
||||||
22
flake.nix
22
flake.nix
|
|
@ -88,6 +88,28 @@
|
||||||
|
|
||||||
nixosConfigurations."caramel" = mkSystem nixpkgs-porcupine "caramel" "aarch64-linux" false;
|
nixosConfigurations."caramel" = mkSystem nixpkgs-porcupine "caramel" "aarch64-linux" false;
|
||||||
|
|
||||||
|
packages."x86_64-linux" =
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs {
|
||||||
|
inherit overlays;
|
||||||
|
system = "x86_64-linux";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
inherit (pkgs.me) linux-lava;
|
||||||
|
};
|
||||||
|
|
||||||
|
packages."aarch64-linux" =
|
||||||
|
let
|
||||||
|
pkgs = import nixpkgs-porcupine {
|
||||||
|
inherit overlays;
|
||||||
|
system = "aarch64-linux";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
|
inherit (pkgs) nixUnstable;
|
||||||
|
};
|
||||||
|
|
||||||
# TODO: currently broken
|
# TODO: currently broken
|
||||||
# devShells.x86_64-linux = pkgs.callPackage ./shells { inherit inputs; };
|
# devShells.x86_64-linux = pkgs.callPackage ./shells { inherit inputs; };
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue