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

44 lines
1.3 KiB
YAML
Raw Normal View History

2023-10-02 12:08:16 +02:00
# .forgejo/workflows/demo.yaml
2023-10-03 08:05:17 +02:00
name: build-nixos-iso
run-name: ${{ github.actor }} - build-nixos-iso
2023-10-02 12:08:16 +02:00
on: [push]
jobs:
2023-10-03 04:25:42 +02:00
build-console-iso:
2023-10-02 12:08:16 +02:00
runs-on: docker
steps:
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 13:24:49 +02:00
- container:
image: nixos/nix
2023-10-03 12:42:17 +02:00
- name: "Docker: Node Info"
2023-10-03 06:11:06 +02:00
run: |
id
uname -a
2023-10-03 05:36:50 +02:00
hostname
2023-10-03 07:12:08 +02:00
2023-10-02 12:08:16 +02:00
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "This job is now running on a ${{ runner.os }} server."
- run: echo "The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
- run: echo "The ${{ github.repository }} repository has been cloned to the runner."
- run: echo "The workflow is now ready to test your code on the runner."
2023-10-03 07:11:21 +02:00
- run: echo "This job's status is ${{ job.status }}."
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 }}