Repository navigation
63 lines (54 loc) · 1.81 KB
/
Copy pathSentinal-Constructor.yml
File metadata and controls
63 lines (54 loc) · 1.81 KB
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
53
54
55
56
57
58
59
60
61
62
63
name: SENTINEL-FORGE-COMPILER
on:
push:
paths:
- 'src/*.c'
jobs:
forge-binaries:
name: "Forge C-Source into EXEs"
runs-on: ubuntu-latest
# --- CRITICAL FIX: GRANTING WRITE ACCESS ---
permissions:
contents: write
# -------------------------------------------
steps:
- name: "Access Sovereign Source"
uses: actions/checkout@v4
with:
# Uses the automatic GitHub token to authorize the push later
token: ${{ secrets.GITHUB_TOKEN }}
- name: "Initialize Environment"
run: |
mkdir -p bin
mkdir -p Beacon
- name: "Execute GCC Forge"
run: |
for source_file in src/*.c; do
if [ -f "$source_file" ]; then
filename=$(basename "$source_file" .c)
echo "[FORGE] Processing: $source_file"
gcc "$source_file" -o "bin/$filename.exe"
echo "[FORGE] Created: bin/$filename.exe"
fi
done
- name: "Verify Binary Signatures"
run: |
for exe in bin/*.exe; do
if grep -q "1.1.CVBGOD" "$exe"; then
echo "[VERIFIED] $exe contains the CVBGOD signature."
else
echo "[WARNING] $exe is missing the handshake."
fi
done
- name: "Push Forged Assets"
run: |
git config --global user.name "Sentinel-Bot"
git config --global user.email "sentinel@mercwar.systems"
git add bin/*.exe
# Only commit if there are actual binary changes
if ! git diff --staged --quiet; then
git commit -m "AVIS: Binaries forged by Sentinel [CVBGOD]"
git push origin HEAD:${{ github.ref }}
else
echo "No changes to binaries. Skipping push."
fi