This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
nix-config-tn/.github/workflows/build-raspi4.yaml

33 lines
874 B
YAML
Raw Normal View History

2024-03-18 16:02:42 -05:00
---
name: sd-image-rpi4
on:
workflow_dispatch:
jobs:
build-sd-image:
name: Build Raspi4 image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: cachix/install-nix-action@v23
with:
nix_path: nixpkgs=channel:nixos-23.05
extra_nix_config: |
extra-platforms = aarch64-linux
- name: Check nix.conf
run: cat /etc/nix/nix.conf
- name: Register binfmt
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: Test binfmt availability
run: |
cat /proc/sys/fs/binfmt_misc/qemu-aarch64
shell: bash
- name: Build SD Image
run: |
2024-03-18 16:19:31 -05:00
nix build .#images.rpi4
2024-03-18 16:02:42 -05:00
- uses: actions/upload-artifact@v3
with:
name: rpi4.img
path: ./result/sd-image/*.img*