2023-10-03 14:49:47 +02:00
|
|
|
name: build-console-iso
|
|
|
|
run-name: ${{ github.actor }} - build-console-iso
|
2023-10-04 01:21:31 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2023-10-02 12:08:16 +02:00
|
|
|
jobs:
|
2023-10-03 04:25:42 +02:00
|
|
|
build-console-iso:
|
2023-10-02 12:08:16 +02:00
|
|
|
runs-on: docker
|
2023-10-03 13:47:28 +02:00
|
|
|
container:
|
2023-10-03 14:07:16 +02:00
|
|
|
image: alpine:edge
|
2023-10-02 12:08:16 +02:00
|
|
|
steps:
|
2023-10-03 13:53:46 +02:00
|
|
|
- name: "Setup Runner"
|
|
|
|
run: |
|
|
|
|
apk update
|
2023-10-03 14:09:04 +02:00
|
|
|
apk add git nodejs nix --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/
|
2023-10-03 04:36:50 +02:00
|
|
|
- uses: actions/checkout@v3
|
2023-10-03 04:20:52 +02:00
|
|
|
with:
|
2023-10-03 04:24:04 +02:00
|
|
|
sparse-checkout: |
|
2023-10-03 05:09:40 +02:00
|
|
|
.forgejo
|
2023-10-03 04:24:04 +02:00
|
|
|
home-manager
|
|
|
|
lib
|
|
|
|
nixos
|
|
|
|
flake.lock
|
|
|
|
flake.nix
|
|
|
|
shell.nix
|
2023-10-03 07:11:21 +02:00
|
|
|
- name: "Directory Structure"
|
2023-10-03 04:47:57 +02:00
|
|
|
run: |
|
2023-10-03 05:11:56 +02:00
|
|
|
ls ${{ github.workspace }}/*
|
2023-10-03 12:42:17 +02:00
|
|
|
- name: "Runner: Node Info"
|
|
|
|
run: |
|
|
|
|
id
|
|
|
|
uname -a
|
|
|
|
hostname
|
2023-10-03 14:00:28 +02:00
|
|
|
cat /etc/os-release
|
2023-10-03 14:10:47 +02:00
|
|
|
- name: "Nix Version"
|
|
|
|
run: |
|
|
|
|
nix --version
|
2023-10-03 14:27:00 +02:00
|
|
|
- name: "Nix build"
|
|
|
|
run: |
|
|
|
|
echo "Running Nix Build"
|
2023-10-03 14:28:59 +02:00
|
|
|
nix --extra-experimental-features "nix-command flakes" \
|
2023-10-03 14:27:00 +02:00
|
|
|
build /workspace/albert/nix#imageConfigurations.nixos-iso-console
|
|
|
|
echo "Results:"
|
2023-10-03 14:49:47 +02:00
|
|
|
ls -lah result/iso/
|
2023-10-03 13:26:18 +02:00
|
|
|
|
2023-10-03 07:20:25 +02:00
|
|
|
- if: always()
|
2023-10-03 07:46:16 +02:00
|
|
|
run: rm -rf /.cache
|
|
|
|
- if: always()
|
|
|
|
run: rm -rf ${{ github.worksspace }}
|