nix/.forgejo/workflows/build-desktop-iso.yml
2023-10-04 08:21:31 +09:00

51 lines
No EOL
1.2 KiB
YAML

name: build-desktop-iso
run-name: ${{ github.actor }} - build-desktop-iso
on:
push:
branches:
- main
jobs:
build-desktop-iso:
runs-on: docker
container:
image: alpine:edge
steps:
- name: "Setup Runner"
run: |
apk update
apk add git nodejs nix --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/
- uses: actions/checkout@v3
with:
sparse-checkout: |
.forgejo
home-manager
lib
nixos
flake.lock
flake.nix
shell.nix
- name: "Directory Structure"
run: |
ls ${{ github.workspace }}/*
- name: "Runner: Node Info"
run: |
id
uname -a
hostname
cat /etc/os-release
- name: "Nix Version"
run: |
nix --version
- name: "Nix build"
run: |
echo "Running Nix Build"
nix --extra-experimental-features "nix-command flakes" \
build /workspace/albert/nix#imageConfigurations.nixos-iso-desktop
echo "Results:"
ls -lah result/iso/
- if: always()
run: rm -rf /.cache
- if: always()
run: rm -rf ${{ github.worksspace }}