markdown-preview.nvim runs yarn install which compiles native binaries. Under QEMU aarch64 emulation on x86_64 this causes 'Illegal instruction' crashes. Pi images must be built locally or on a native aarch64 runner. Pi deployment still works via Comin (builds locally on the Pi itself).
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
flake-check:
|
|
runs-on: host
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Run flake check
|
|
run: nix flake check --impure
|
|
|
|
build-hosts:
|
|
needs: flake-check
|
|
runs-on: host
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build cryodev-main
|
|
run: nix build .#nixosConfigurations.cryodev-main.config.system.build.toplevel --impure
|
|
|
|
# Pi build disabled: QEMU emulation crashes on Node.js packages
|
|
# - name: Build cryodev-pi
|
|
# run: nix build .#nixosConfigurations.cryodev-pi.config.system.build.toplevel --impure
|
|
|
|
# Pi builds require native aarch64 or reliable QEMU emulation.
|
|
# Currently disabled due to QEMU crashes with Node.js packages.
|
|
# Build Pi images locally with:
|
|
# nix build .#nixosConfigurations.cryodev-pi.config.system.build.sdImage --extra-platforms aarch64-linux
|
|
#
|
|
# build-pi-images:
|
|
# needs: build-hosts
|
|
# ...
|
|
#
|
|
# create-release:
|
|
# needs: build-pi-images
|
|
# ...
|