4dddea2e8c
Co-authored-by: Codex <codex@openai.com>
28 lines
858 B
YAML
28 lines
858 B
YAML
# Opt-in heavy sandbox runtime tier; separate from the routine WASM contract.
|
|
name: wasm-budget
|
|
on:
|
|
workflow_dispatch:
|
|
env:
|
|
CARGO_BUILD_JOBS: "1"
|
|
CARGO_INCREMENTAL: "0"
|
|
jobs:
|
|
budget:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
- name: Rust
|
|
run: |
|
|
curl -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --target wasm32-unknown-unknown
|
|
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
|
|
- name: Actual WASM budget scenario
|
|
run: nice -n 19 python3 tools/airdef.py test-budgets
|
|
- name: Preserve machine-readable provenance
|
|
if: always()
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: wasm-budget-provenance
|
|
path: .horizon-cache/wasm-budget-report.json
|
|
if-no-files-found: warn
|