nix/.forgejo/workflows/build-console-iso.yml

50 lines
1.2 KiB
YAML
Raw Normal View History

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