mirror of
https://github.com/sstent/NixOS_ARM_SDImages.git
synced 2025-12-06 06:01:42 +00:00
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: Build OS Image - AARCH64
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-default-image:
|
|
name: Build OS image - AARCH64
|
|
runs-on: ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v2.3.4
|
|
|
|
- uses: cachix/install-nix-action@v13
|
|
with:
|
|
# Pin because the latest all-hardware profile changes
|
|
# https://github.com/NixOS/nixpkgs/pull/128532
|
|
nix_path: nixpkgs=https://github.com/NixOS/nixpkgs/archive/c23146505c35a07bafbecf36af4f9ebde2bb7dfd.tar.gz
|
|
extra_nix_config: |
|
|
extra-platforms = aarch64-linux
|
|
|
|
|
|
- run: |
|
|
sudo apt -y install qemu-user-static
|
|
|
|
- name: Test binfmt
|
|
run: |
|
|
cat /proc/sys/fs/binfmt_misc/qemu-aarch64
|
|
/usr/bin/qemu-aarch64-static --version
|
|
|
|
- name: Build SD Image
|
|
run: |
|
|
nix-build '<nixpkgs/nixos>' \
|
|
-A config.system.build.sdImage \
|
|
-I nixos-config=./sd-image_aarch64.nix \
|
|
--argstr system aarch64-linux \
|
|
--option sandbox false
|
|
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
name: sd-image_aarch64.img
|
|
path: ./result/sd-image/*.img*
|