feat(core): initialize NaxOS declarative NixOS distribution, modules, and ISO installer
Test NaxOS Module Configurations / test-modules (push) Failing after 6m10s
Test NaxOS Module Configurations / test-modules (push) Failing after 6m10s
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
name: Build NaxOS Bootable ISO
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
channel:
|
||||
description: 'Target Release Channel'
|
||||
required: true
|
||||
default: 'stable'
|
||||
|
||||
jobs:
|
||||
build-iso:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Nix with Flake Support
|
||||
uses: cachix/install-nix-action@v27
|
||||
with:
|
||||
nix_path: nixpkgs=channel:nixos-24.11
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
|
||||
- name: Build Bootable NaxOS Installer ISO
|
||||
run: |
|
||||
nix build .#iso --show-trace
|
||||
|
||||
- name: Locate ISO Artifact
|
||||
id: iso-info
|
||||
run: |
|
||||
ISO_FILE=$(find result/iso -name "*.iso" | head -n 1)
|
||||
echo "Found ISO: $ISO_FILE"
|
||||
SHA256=$(sha256sum "$ISO_FILE" | cut -d' ' -f1)
|
||||
echo "SHA256: $SHA256"
|
||||
echo "iso_file=$ISO_FILE" >> $GITHUB_OUTPUT
|
||||
echo "sha256=$SHA256" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Upload ISO Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: naxos-installer-iso
|
||||
path: result/iso/*.iso
|
||||
@@ -0,0 +1,39 @@
|
||||
name: Package NaxOS Release
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v27
|
||||
with:
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
|
||||
- name: Build ISO
|
||||
run: |
|
||||
nix build .#iso
|
||||
|
||||
- name: Generate Checksums
|
||||
run: |
|
||||
mkdir -p release-dist
|
||||
cp result/iso/*.iso release-dist/
|
||||
cd release-dist
|
||||
sha256sum *.iso > SHA256SUMS
|
||||
|
||||
- name: Create Gitea Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: |
|
||||
release-dist/*
|
||||
draft: false
|
||||
prerelease: false
|
||||
generate_release_notes: true
|
||||
@@ -0,0 +1,29 @@
|
||||
name: Test NaxOS Module Configurations
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
test-modules:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Nix
|
||||
uses: cachix/install-nix-action@v27
|
||||
with:
|
||||
extra_nix_config: |
|
||||
experimental-features = nix-command flakes
|
||||
|
||||
- name: Evaluate Flake Outputs & Check Syntax
|
||||
run: |
|
||||
nix flake show
|
||||
nix flake check --all-systems
|
||||
|
||||
- name: Validate Appliance System Configuration Evaluation
|
||||
run: |
|
||||
nix eval .#nixosConfigurations.naxos.config.system.build.toplevel.drvPath
|
||||
Reference in New Issue
Block a user