Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/workflows/core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,18 @@ jobs:
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5
- name: Bootstrap pinned dependencies and models
- name: Restore locked build inputs
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
with:
path: |
.cache/dependencies
.cache/models
key: core-inputs-${{ runner.os }}-${{ hashFiles('models/deps.lock.json', 'models/bundles.lock.json') }}
- name: Bootstrap locked dependencies and models
shell: bash
run: |
python tools/bootstrap_dependencies.py --cache-dir .cache/dependencies
python tools/bootstrap_dependencies.py --cache-dir .cache/dependencies --offline
python tools/bootstrap_models.py --cache-dir .cache/models
python tools/package_model_bundle.py
- name: Configure without dependency network access (Unix)
if: runner.os != 'Windows'
shell: bash
Expand Down
32 changes: 30 additions & 2 deletions .github/workflows/webgpu-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,28 @@ name: native webgpu
on:
push:
branches: [main]
paths:
- "CMakeLists.txt"
- "bindings/node/**"
- "cmake/**"
- "contracts/**"
- "include/**"
- "models/bundles.lock.json"
- "models/deps.lock.json"
- "models/derived/**"
- "reports/webgpu-qualification/**"
- "src/**"
- "tests/integration/**"
- "tests/unit/**"
- "tests/python/test_npm_release.py"
- "tests/python/test_npm_webgpu_release.py"
- "tests/python/test_webgpu_*.py"
- "tests/python/test_windows_node_addon.py"
- "tools/bootstrap_dependencies.py"
- "tools/bootstrap_models.py"
- "tools/generate_release_metadata.py"
- "tools/npm_release.py"
- "tools/webgpu/**"
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -35,6 +57,14 @@ jobs:
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: "22"
- name: Restore locked build inputs
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830
with:
path: |
.cache/dependencies
.cache/models
.cache/webgpu-packages
key: webgpu-inputs-${{ runner.os }}-${{ hashFiles('models/deps.lock.json', 'models/bundles.lock.json', 'models/derived/**', 'tools/webgpu/runtime-lock.json') }}
- name: Validate contract unit tests
run: >-
python -m unittest
Expand All @@ -56,9 +86,7 @@ jobs:
shell: bash
run: |
python tools/bootstrap_dependencies.py --cache-dir .cache/dependencies
python tools/bootstrap_dependencies.py --cache-dir .cache/dependencies --offline
python tools/bootstrap_models.py --cache-dir .cache/models
python tools/package_model_bundle.py
python tools/webgpu/package_bundle.py
- name: Reproduce the locked internal FP16 derivations (Linux)
if: runner.os != 'Windows'
Expand Down
Loading