Files
betterxen/.github/workflows/hybrid-ci.yml
T
ates 30e551a161 Overhaul repo into clean 6-track hybrid M0 workspace and retire legacy native files
Rebases onto origin/main and retires the paused in-tree native-first workspace, legacy scripts, legacy CI, and native-only docs per ADR 0006 (preserving full history permanently at Git tag native-first-final).

Addresses all maintainer review findings on PR #406:
- Isolate CrossOver/Wine child process environment in bx-cli (env_clear + minimal allowlist + opt-in --inherit-env, with unit tests)
- Replace naive objdump grep in scripts/build-shims.sh with strict PE Export Directory verification (exact names, ordinals, forwarders, 0 extra exports, 0 forbidden MinGW imports across all 16 DLLs / 102 exports)
- Restore global * @MacosPorters/maintainers fallback in .github/CODEOWNERS alongside per-track rules
- Restore independent-verification, claims/evidence-class, provenance-first, and contributor clean-room protections in AGENTS.md
- Unify docs/roadmap.md, CONTRIBUTING.md, README.md, docs/README.md, THIRD_PARTY_NOTICES.md, and CHANGELOG.md around Milestones M0-M6 and ADR 0006

Signed-off-by: ates <ahmetrizaates@hotmail.com>
2026-11-26 07:59:27 +03:00

54 lines
1.7 KiB
YAML

name: Hybrid build and shim checks
on:
push:
branches: [main]
pull_request:
permissions:
contents: read
concurrency:
group: hybrid-ci-${{ github.ref }}
cancel-in-progress: true
jobs:
arm64-host-and-shims:
name: ARM64 host Rust + x86-64 PE32+ shims
runs-on: macos-26
timeout-minutes: 15
env:
CARGO_BUILD_JOBS: 3
CARGO_BUILD_TARGET: aarch64-apple-darwin
RUSTUP_TOOLCHAIN: 1.100.0-aarch64-apple-darwin
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Verify Apple Silicon runner
run: |
test "$(uname -m)" = arm64
test "$(sysctl -n sysctl.proc_translated)" = 0
- name: Install Rust toolchain
run: |
rustup toolchain install "$RUSTUP_TOOLCHAIN" --profile minimal --component rustfmt --component clippy
rustc -vV
- name: Check ARM64 Rust workspace (launcher + shader-transpiler)
run: |
cargo fmt --all -- --check
cargo clippy --locked --workspace --all-targets -- -D warnings
cargo test --locked --workspace
cargo build --locked -p bx-cli
binary=target/aarch64-apple-darwin/debug/bx-cli
file "$binary"
test "$(lipo -archs "$binary")" = arm64
- name: Install mingw-w64 and CMake
env:
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
run: |
brew install mingw-w64 cmake
x86_64-w64-mingw32-g++ --version | head -n 1
- name: Cross-compile all x86-64 PE32+ shim DLLs and verify exports
run: scripts/build-shims.sh