-
-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (42 loc) · 1.17 KB
/
post-garnix.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
name: Extract ISO
on:
check_suite:
types: [completed]
jobs:
extract-light-iso:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: build
run: "nix build --accept-flake-config .#iso-light"
- name: copy artefact
run: "cp result/iso/nixos.iso vm-light.iso" # GitHub fails to handle symlinks
- name: upload
uses: actions/upload-artifact@v4
with:
name: vm-light.iso
path: vm-light.iso
extract-iso:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install nix
uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: build
run: "nix build --accept-flake-config .#iso"
- name: copy artefact
run: "cp result/iso/nixos.iso vm.iso" # GitHub fails to handle symlinks
- name: upload
uses: actions/upload-artifact@v4
with:
name: vm.iso
path: vm.iso