feat: Adds build pipeline
This commit is contained in:
parent
84281c0586
commit
b828dcd15f
1 changed files with 43 additions and 0 deletions
43
.github/workflows/kiosk-iso.yml
vendored
Normal file
43
.github/workflows/kiosk-iso.yml
vendored
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
name: Build NixOS Kiosk ISO
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ profile-install ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
flake-check:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: nixos/nix:2.33.0
|
||||
env:
|
||||
NIX_CONFIG: extra-experimental-features = nix-command flakes
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Flake check
|
||||
run: nix flake check -L
|
||||
|
||||
build-iso:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [ flake-check ]
|
||||
container:
|
||||
image: nixos/nix:2.33.0
|
||||
env:
|
||||
NIX_CONFIG: extra-experimental-features = nix-command flakes
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Build ISO
|
||||
run: |
|
||||
nix --version
|
||||
nix build .#iso -L --system x86_64-linux
|
||||
ls -la result
|
||||
mkdir -p artifacts
|
||||
cp -v result/iso/*.iso artifacts/
|
||||
- name: Upload ISO artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: kiosk-iso
|
||||
path: artifacts/*.iso
|
||||
if-no-files-found: error
|
||||
Loading…
Add table
Add a link
Reference in a new issue