Skip to content

Commit

Permalink
ci: build pi3 sd image
Browse files Browse the repository at this point in the history
  • Loading branch information
MSchmoecker authored and elikoga committed Dec 17, 2024
1 parent c94e0ff commit f4433c5
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-devices.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,27 @@ on:
- master

jobs:
build-thymis-controller-pi-3-sd-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dbhi/qus/action@main
with:
targets: aarch64
- name: Install Nix
uses: cachix/install-nix-action@v27
with:
extra_nix_config: |
system-features = kvm
extra-trusted-public-keys = cache.thymis.io-1:pEeKkNXiK17TLKls0KM8cEp0NGy08gc5chAmCyuQo8M=
extra-substituters = https://cache.thymis.io
extra-platforms = aarch64-linux
- uses: DeterminateSystems/magic-nix-cache-action@v2
- name: pin nixpkgs
run: nix registry add nixpkgs github:NixOS/nixpkgs/nixos-24.05
- name: build thymis-controller-pi-3-sd-image
run: nix build .#thymis-controller-pi-3-sd-image --print-build-logs

build-thymis-controller-pi-4-sd-image:
runs-on: ubuntu-latest
steps:
Expand Down
18 changes: 18 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,22 @@
(import ./image-formats.nix { inherit inputs; lib = nixpkgs.lib; })
);

thymis-controller-pi-3-sd-image = (nixpkgs.lib.nixosSystem {
modules = [
nixosModules.thymis-device
nixosModules."thymis-device-raspberry-pi-3"
nixosModules."thymis-image-sd-card-image"
nixosModules.thymis-controller
{
services.thymis-controller.enable = true;
system.stateVersion = "24.05";
}
];
specialArgs = {
inherit inputs;
};
}).config.system.build.thymis-image;

thymis-controller-pi-4-sd-image = (nixpkgs.lib.nixosSystem {
modules = [
nixosModules.thymis-device
Expand Down Expand Up @@ -139,10 +155,12 @@
}
);
nixosModules = nixosModules;
thymis-controller-pi-3-sd-image = thymis-controller-pi-3-sd-image;
thymis-controller-pi-4-sd-image = thymis-controller-pi-4-sd-image;
thymis-controller-pi-5-sd-image = thymis-controller-pi-5-sd-image;
thymis-controller-generic-x86_64-image = thymis-controller-generic-x86_64-image;
hydraJobs = {
thymis-controller-pi-3-sd-image = thymis-controller-pi-3-sd-image;
thymis-controller-pi-4-sd-image = thymis-controller-pi-4-sd-image;
thymis-controller-pi-5-sd-image = thymis-controller-pi-5-sd-image;
thymis-controller-generic-x86_64-image = thymis-controller-generic-x86_64-image;
Expand Down

0 comments on commit f4433c5

Please sign in to comment.