add sd image builder
This commit is contained in:
parent
ac28b07ba7
commit
115a768329
1 changed files with 29 additions and 0 deletions
29
.github/workflows/build-sd-image.yml
vendored
Normal file
29
.github/workflows/build-sd-image.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: Build SD image for Raspberry Pi 5
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-sd-image:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v16
|
||||
|
||||
- name: Build SD image
|
||||
run: nix build -L '.#nixosConfigurations.pochita-sd.config.system.build.sdImage
|
||||
|
||||
- name: Zip the Resulting SD image
|
||||
run: |
|
||||
mkdir -p sd-image
|
||||
cp -r result/* sd-image
|
||||
zip -r sd-image.zip sd-image
|
||||
|
||||
- name: Upload SD image
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: sd-image
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue