interplane.Get Omega
Read in your language

aien-sovereign-core

Autonomous sovereign intelligence engine and runtime core for NVIDIA DGX Spark

Brought by drakestapleton

branch main Branches Tags History

aien-sovereign-core / .github / workflows / release.yml

78 lines · 2597 bytes Raw Blame History
1name: Multi-OS Cross-Platform Release
2
3on:
4 push:
5 tags:
6 - 'v*'
7 workflow_dispatch:
8
9permissions:
10 contents: write
11
12jobs:
13 build-release:
14 name: Build ${{ matrix.target }}
15 runs-on: ${{ matrix.os }}
16 strategy:
17 fail-fast: false
18 matrix:
19 include:
20 - os: ubuntu-latest
21 target: x86_64-unknown-linux-gnu
22 artifact_name: sovereign-linux-x86_64.tar.gz
23 use_tar: true
24 - os: ubuntu-24.04-arm
25 target: aarch64-unknown-linux-gnu
26 artifact_name: sovereign-linux-aarch64.tar.gz
27 use_tar: true
28 - os: macos-latest
29 target: aarch64-apple-darwin
30 artifact_name: sovereign-macos-arm64.tar.gz
31 use_tar: true
32 - os: macos-13
33 target: x86_64-apple-darwin
34 artifact_name: sovereign-macos-x86_64.tar.gz
35 use_tar: true
36 - os: windows-latest
37 target: x86_64-pc-windows-msvc
38 artifact_name: sovereign-windows-x64.zip
39 use_tar: false
40
41 steps:
42 - name: Checkout Source
43 uses: actions/checkout@v4
44
45 - name: Install Rust Toolchain
46 uses: dtolnay/rust-toolchain@stable
47 with:
48 targets: ${{ matrix.target }}
49
50 - name: Build Workspace
51 run: cargo build --release --workspace
52
53 - name: Package Release Assets (Unix)
54 if: matrix.use_tar
55 run: |
56 mkdir -p dist/bin dist/imprints
57 cp target/release/spark-cockpit-rs dist/bin/ 2>/dev/null || true
58 cp target/release/spark-inquisitor dist/bin/ 2>/dev/null || true
59 cp target/release/cortex-encoder-rs dist/bin/ 2>/dev/null || true
60 cp target/release/cortex-rs dist/bin/ 2>/dev/null || true
61 cp -r imprints/en2-trinity dist/imprints/
62 cp CONSTITUTION.md README.md install.sh dist/
63 tar -czvf ${{ matrix.artifact_name }} -C dist .
64
65 - name: Package Release Assets (Windows)
66 if: "!matrix.use_tar"
67 run: |
68 New-Item -ItemType Directory -Force -Path dist/bin, dist/imprints
69 Get-ChildItem target/release/*.exe | ForEach-Object { Copy-Item $_.FullName dist/bin/ }
70 Copy-Item -Recurse -Force imprints/en2-trinity dist/imprints/
71 Copy-Item CONSTITUTION.md, README.md, install.ps1 dist/
72 Compress-Archive -Path dist/* -DestinationPath ${{ matrix.artifact_name }}
73
74 - name: Upload Artifact
75 uses: actions/upload-artifact@v4
76 with:
77 name: ${{ matrix.target }}
78 path: ${{ matrix.artifact_name }}