Skip to content

Build and Test NeuroHTTP on main #12

Build and Test NeuroHTTP on main

Build and Test NeuroHTTP on main #12

Workflow file for this run

name: Build & Test (C/ASM NeuroHTTP)
run-name: Build and Test NeuroHTTP on ${{ github.ref_name }}
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: 🧭 Checkout repository
uses: actions/checkout@v4
- name: ⚙️ Install build dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y build-essential clang make nasm
- name: 🏗️ Build project
run: |
echo "🔧 Starting build..."
make all || { echo "❌ Build failed"; exit 1; }
echo "✅ Build completed successfully."
- name: 🧪 Verify binary output
run: |
if [ -f "./bin/aionic" ]; then
echo "✅ Binary built successfully!"
./bin/aionic --version 2>/dev/null || echo "ℹ️ Version info unavailable."
else
echo "❌ Binary not found!"
exit 1
fi
- name: ✅ Mark workflow success
if: ${{ success() }}
run: |
echo "🎯 All steps completed successfully!"
echo "BUILD_STATUS=success" >> $GITHUB_ENV
- name: 🚀 Finalize job
run: |
if [ "$BUILD_STATUS" = "success" ]; then
echo "✅ Workflow finished cleanly — marking as passed."
exit 0
else
echo "❌ Something went wrong, marking as failed."
exit 1
fi