Merge pull request #429 from zeroclaw-labs/selfhost-blacksmith

This commit is contained in:
Will Sarg 2026-02-16 16:08:49 -05:00 committed by GitHub
commit 8b5d55a66c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 54 additions and 54 deletions

View file

@ -118,7 +118,7 @@ jobs:
name: Format & Lint name: Format & Lint
needs: [changes] needs: [changes]
if: needs.changes.outputs.rust_changed == 'true' if: needs.changes.outputs.rust_changed == 'true'
runs-on: ${{ github.event_name == 'push' && fromJSON('["self-hosted","Linux","X64","lxc-ci"]') || 'ubuntu-latest' }} runs-on: blacksmith-2vcpu-ubuntu-2404
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
@ -138,7 +138,7 @@ jobs:
name: Test name: Test
needs: [changes] needs: [changes]
if: needs.changes.outputs.rust_changed == 'true' if: needs.changes.outputs.rust_changed == 'true'
runs-on: ${{ github.event_name == 'push' && fromJSON('["self-hosted","Linux","X64","lxc-ci"]') || 'ubuntu-latest' }} runs-on: blacksmith-2vcpu-ubuntu-240
timeout-minutes: 30 timeout-minutes: 30
steps: steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
@ -153,7 +153,7 @@ jobs:
name: Build (Smoke) name: Build (Smoke)
needs: [changes] needs: [changes]
if: needs.changes.outputs.rust_changed == 'true' if: needs.changes.outputs.rust_changed == 'true'
runs-on: ${{ github.event_name == 'push' && fromJSON('["self-hosted","Linux","X64","lxc-ci"]') || 'ubuntu-latest' }} runs-on: blacksmith-2vcpu-ubuntu-240
timeout-minutes: 20 timeout-minutes: 20
steps: steps:
@ -187,7 +187,7 @@ jobs:
name: Docs Quality name: Docs Quality
needs: [changes] needs: [changes]
if: needs.changes.outputs.docs_changed == 'true' if: needs.changes.outputs.docs_changed == 'true'
runs-on: ${{ github.event_name == 'push' && fromJSON('["self-hosted","Linux","X64","lxc-ci"]') || 'ubuntu-latest' }} runs-on: blacksmith-2vcpu-ubuntu-240
timeout-minutes: 15 timeout-minutes: 15
steps: steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

View file

@ -1,65 +1,65 @@
name: Workflow Sanity name: Workflow Sanity
on: on:
pull_request: pull_request:
paths: paths:
- ".github/workflows/**" - ".github/workflows/**"
- ".github/*.yml" - ".github/*.yml"
- ".github/*.yaml" - ".github/*.yaml"
push: push:
branches: [main] branches: [main]
paths: paths:
- ".github/workflows/**" - ".github/workflows/**"
- ".github/*.yml" - ".github/*.yml"
- ".github/*.yaml" - ".github/*.yaml"
concurrency: concurrency:
group: workflow-sanity-${{ github.event.pull_request.number || github.sha }} group: workflow-sanity-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true cancel-in-progress: true
permissions: permissions:
contents: read contents: read
jobs: jobs:
no-tabs: no-tabs:
runs-on: ${{ github.event_name == 'push' && fromJSON('["self-hosted","Linux","X64","lxc-ci"]') || 'ubuntu-latest' }} runs-on: blacksmith-2vcpu-ubuntu-240
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Fail on tabs in workflow files - name: Fail on tabs in workflow files
shell: bash shell: bash
run: | run: |
set -euo pipefail set -euo pipefail
python - <<'PY' python - <<'PY'
from __future__ import annotations from __future__ import annotations
import pathlib import pathlib
import sys import sys
root = pathlib.Path(".github/workflows") root = pathlib.Path(".github/workflows")
bad: list[str] = [] bad: list[str] = []
for path in sorted(root.rglob("*.yml")): for path in sorted(root.rglob("*.yml")):
if b"\t" in path.read_bytes(): if b"\t" in path.read_bytes():
bad.append(str(path)) bad.append(str(path))
for path in sorted(root.rglob("*.yaml")): for path in sorted(root.rglob("*.yaml")):
if b"\t" in path.read_bytes(): if b"\t" in path.read_bytes():
bad.append(str(path)) bad.append(str(path))
if bad: if bad:
print("Tabs found in workflow file(s):") print("Tabs found in workflow file(s):")
for path in bad: for path in bad:
print(f"- {path}") print(f"- {path}")
sys.exit(1) sys.exit(1)
PY PY
actionlint: actionlint:
runs-on: ${{ github.event_name == 'push' && fromJSON('["self-hosted","Linux","X64","lxc-ci"]') || 'ubuntu-latest' }} runs-on: blacksmith-2vcpu-ubuntu-240
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Lint GitHub workflows - name: Lint GitHub workflows
uses: rhysd/actionlint@393031adb9afb225ee52ae2ccd7a5af5525e03e8 # v1.7.11 uses: rhysd/actionlint@393031adb9afb225ee52ae2ccd7a5af5525e03e8 # v1.7.11