ci(ext): ship provider worker in release archives, add Windows compile gate and evidence validator tests
CI / fmt + clippy + test (Linux x86_64) (push) Waiting to run
CI / schema instance validation + consumers (push) Waiting to run
CI / runtime contract (macos-latest) (push) Waiting to run
CI / runtime contract (windows-latest) (push) Waiting to run
Linux strict security lane (G-C) / strict isolation escape matrix (push) Waiting to run
ci/woodpecker/push/main Pipeline failed
CI / fmt + clippy + test (Linux x86_64) (push) Waiting to run
CI / schema instance validation + consumers (push) Waiting to run
CI / runtime contract (macos-latest) (push) Waiting to run
CI / runtime contract (windows-latest) (push) Waiting to run
Linux strict security lane (G-C) / strict isolation escape matrix (push) Waiting to run
ci/woodpecker/push/main Pipeline failed
- Woodpecker test: prebuild provider helper; cross-check windows target - Woodpecker build: release-build marqdo-cli + marqdo-provider-worker, assert helper - GitHub release candidate: package helper as sibling and smoke assert it - release-evidence: validate committed external-extension manifest or report UNVERIFIED - tools/ci: unit tests for verify_extension_contracts manifest validation - docs/ci: document the CI/CD changes
This commit is contained in:
1 parent
2cbde54602
commit
c8049d51bf
4 files changed
+132
-3
No files matched your search
@@ -213,6 +213,19 @@ jobs:
|
||||
linux="FAIL"
|
||||
fi
|
||||
python3 tools/ci/release_evidence.py --target-sha "$TARGET_SHA" --out "docs/evidence/ci/$TARGET_SHA/manifest.json" --gate "linux=$linux:$TARGET_SHA:$RUN_URL" --gate "windows=$portable:$TARGET_SHA:$RUN_URL" --gate "macos=$portable:$TARGET_SHA:$RUN_URL" --gate "strict_vm=UNVERIFIED::${{ github.server_url }}/${{ github.repository }}/actions/workflows/security-linux.yml" --gate "performance=UNVERIFIED::"
|
||||
- name: Validate external-extension evidence when committed
|
||||
shell: bash
|
||||
env:
|
||||
TARGET_SHA: ${{ github.sha }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
manifest="docs/evidence/extension/$TARGET_SHA/manifest.json"
|
||||
if [ -f "$manifest" ]; then
|
||||
python3 tools/ci/verify_extension_contracts.py --validate "$manifest"
|
||||
else
|
||||
echo "UNVERIFIED: no external-extension manifest for $TARGET_SHA."
|
||||
echo "Release requires tools/ci/verify_extension_contracts.py on the tagged SHA (docs/releasing.md §7)."
|
||||
fi
|
||||
- name: Upload release manifest
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
@@ -237,8 +250,10 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Build release binary
|
||||
run: cargo build --release --locked -p marqdo-cli
|
||||
- name: Build release binaries
|
||||
run: |
|
||||
cargo build --release --locked -p marqdo-cli -p marqdo-provider-worker
|
||||
test -x target/release/marqdo-provider-worker
|
||||
- name: Package and checksum
|
||||
shell: bash
|
||||
run: |
|
||||
@@ -247,6 +262,9 @@ jobs:
|
||||
stage="dist/marqdo-${version}-${{ matrix.target }}"
|
||||
mkdir -p "$stage"
|
||||
install -m 0755 target/release/marqdo "$stage/"
|
||||
# The provider worker is required for provider.json v2 and must be a
|
||||
# sibling of the marqdo executable (no PATH fallback).
|
||||
install -m 0755 target/release/marqdo-provider-worker "$stage/"
|
||||
cp LICENSE-MIT LICENSE-APACHE CHANGELOG.md COMPATIBILITY.md README.md "$stage/"
|
||||
cp -r spec examples "$stage/"
|
||||
mkdir -p "$stage/tests"
|
||||
@@ -273,6 +291,7 @@ jobs:
|
||||
cd marqdo-*
|
||||
./marqdo --version
|
||||
./marqdo --help >/dev/null
|
||||
test -x ./marqdo-provider-worker
|
||||
./marqdo check examples/multi-module/index.mq.md --refs --emit analysis.json
|
||||
./marqdo run examples/hello.mq.md
|
||||
./marqdo run examples/multi-module/index.mq.md --trace-file trace.json
|
||||
|
||||
Reference in new issue
Block a user