interplane.Get Omega
Read in your language

aegis-runtime-mv

Native Rust agent runtime: Axum WebSocket/SSE/REST gateway, heartbeat scheduler, dependency-aware task workflow, SQLite storage. Attachment of AienOS. Pre-alpha.

Brought by drakestapleton

branch main Branches Tags History

aegis-runtime-mv / .github / workflows / release.yml

91 lines · 2897 bytes Raw Blame History
1name: AEGIS Binary Release Pipeline
2
3on:
4 push:
5 tags:
6 - "v*"
7 workflow_dispatch:
8
9permissions:
10 contents: read
11
12jobs:
13 build-linux-x86:
14 name: Build Linux x86_64
15 runs-on: ubuntu-latest
16 steps:
17 # Build and artifact upload do not need repository write authority.
18 - name: Checkout AEGIS
19 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
20 with:
21 path: aegis-runtime
22 persist-credentials: false
23
24 - name: Checkout AIEN Sovereign Core Dependencies
25 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
26 with:
27 repository: aien-dev/aien-sovereign-core
28 path: aien-sovereign-core
29 persist-credentials: false
30
31 - name: Install Rust Toolchain
32 uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
33
34 - name: Build Binary
35 working-directory: aegis-runtime
36 run: cargo build --release
37
38 - name: Package Binary
39 working-directory: aegis-runtime
40 run: |
41 mkdir -p dist
42 cp target/release/aegis dist/aegis
43 chmod +x dist/aegis
44 tar -czf aegis-linux-x86_64.tar.gz -C dist aegis
45 sha256sum aegis-linux-x86_64.tar.gz > aegis-linux-x86_64.tar.gz.sha256
46
47 - name: Upload Artifact
48 uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
49 with:
50 name: aegis-linux-x86_64
51 path: aegis-runtime/aegis-linux-x86_64.*
52
53 publish-release:
54 name: Publish Release and Checksums
55 needs: build-linux-x86
56 runs-on: ubuntu-latest
57 permissions:
58 contents: write
59 steps:
60 - name: Checkout Source
61 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
62 with:
63 persist-credentials: false
64
65 - name: Download Build Artifacts
66 uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
67 with:
68 path: release-artifacts
69 merge-multiple: true
70
71 - name: Generate Checksums
72 working-directory: release-artifacts
73 run: |
74 sha256sum aegis-linux-*.tar.gz > SHA256SUMS.txt
75 cat SHA256SUMS.txt
76
77 - name: Publish GitHub Release
78 env:
79 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80 run: |
81 TAG="${GITHUB_REF_NAME}"
82 if [ -z "$TAG" ] || [ "$TAG" = "main" ]; then
83 TAG="v0.1.0"
84 fi
85 cd release-artifacts
86 gh release create "$TAG" aegis-linux-*.tar.gz aegis-linux-*.sha256 SHA256SUMS.txt \
87 --title "AEGIS $TAG" \
88 --notes "Official binary release of AEGIS native sovereign runtime." \
89 --draft=false \
90 --prerelease=false || \
91 gh release upload "$TAG" aegis-linux-*.tar.gz aegis-linux-*.sha256 SHA256SUMS.txt --clobber