ci: fix PEP668 pip, linux-only docker, mac via host runner, windows pends on GamingPC host runner
Some checks failed
Build Agent Binaries / build-linux (push) Failing after 6s
Build Agent Binaries / build-windows (push) Failing after 1s
Build Agent Binaries / build-macos (push) Has been cancelled

This commit is contained in:
Hermes
2026-10-01 16:22:45 -07:00
parent 1ec100388e
commit 9abafcd131

View File

@@ -6,38 +6,46 @@ on:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact: NexusAgent-linux
- os: windows-latest
artifact: NexusAgent-windows
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install PyInstaller
run: pip install pyinstaller
- name: Bake token + build (unix)
if: matrix.os != 'windows-latest'
shell: bash
run: pip install --break-system-packages pyinstaller || pip install pyinstaller
- name: Bake token + build
env:
AGENT_TOKEN: ${{ secrets.NEXUS_AGENT_TOKEN }}
run: |
sed "s/__AGENT_TOKEN__/$AGENT_TOKEN/" agents/agent.py > baked.py
pyinstaller --onefile --name ${{ matrix.artifact }} baked.py
- name: Bake token + build (windows)
if: matrix.os == 'windows-latest'
pyinstaller --onefile --name NexusAgent-linux baked.py
- uses: actions/upload-artifact@v4
with: {name: NexusAgent-linux, path: dist/}
build-macos:
runs-on: macos-latest # host runner on drjones' MacBook
steps:
- uses: actions/checkout@v4
- run: pip3 install --user pyinstaller || pip3 install --break-system-packages pyinstaller
- name: Bake token + build
env:
AGENT_TOKEN: ${{ secrets.NEXUS_AGENT_TOKEN }}
run: |
sed "s/__AGENT_TOKEN__/$AGENT_TOKEN/" agents/agent.py > baked.py
pyinstaller --onefile --name NexusAgent-macos baked.py
- uses: actions/upload-artifact@v4
with: {name: NexusAgent-macos, path: dist/}
build-windows:
runs-on: windows-latest # host runner on GamingPC — pends until that host registers
steps:
- uses: actions/checkout@v4
- run: pip install pyinstaller
- name: Bake token + build
shell: pwsh
env:
AGENT_TOKEN: ${{ secrets.NEXUS_AGENT_TOKEN }}
run: |
(Get-Content agents/agent.py) -replace '__AGENT_TOKEN__', $env:AGENT_TOKEN | Set-Content baked.py
pyinstaller --onefile --name ${{ matrix.artifact }} baked.py
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact }}
path: dist/
Thu Oct 1 16:11:20 PDT 2026
pyinstaller --onefile --name NexusAgent-windows baked.py
- uses: actions/upload-artifact@v4
with: {name: NexusAgent-windows, path: dist/}