-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (50 loc) · 1.48 KB
/
xnodeos-build.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
43
44
45
46
47
48
49
50
51
52
---
on:
push:
branches:
- main
- dev
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
format: [ iso, kexec, netboot ]
architecture: [ x86_64 ]
steps:
- name: Git checkout
uses: actions/checkout@v3
- name: Install Nix
uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: make ${{ matrix.format }}
- name: Archive ${{ matrix.format }} ${{ matrix.architecture }} outputs as build artifact
uses: actions/upload-artifact@v4
with:
name: XnodeOS-${{ matrix.architecture }}-${{ matrix.format }}
path: result/
publish:
runs-on: ubuntu-22.04
needs: build
strategy:
matrix:
format: [ iso, kexec, netboot ]
architecture: [ x86_64 ]
steps:
- name: Download release artifact for ${{ matrix.format }} ${{ matrix.architecture }}
uses: actions/download-artifact@v4
with:
name: XnodeOS-${{ matrix.architecture }}-${{ matrix.format }}
path: dist
- name: Upload Result to boot.opnm.sh
uses: appleboy/scp-action@v0.1.7
with:
host: boot.opnm.sh
username: opnm
key: ${{secrets.BOOT_OPNM_SH_DEPLOY_KEY}}
source: dist/*
target: /mnt/boot-opnm-sh/public/v1/latest/${{ github.ref_name }}/${{ matrix.format }}
strip_components: 1
tar_dereference: true
overwrite: true