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
8 changes: 5 additions & 3 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ jobs:
deno-version: v2.x
- uses: taiki-e/install-action@v2
with:
tool: wasm-tools,just
tool: wasm-tools,just,wac-cli
- uses: Swatinem/rust-cache@v2
- run: just build-wasm
- run: deno task build
# `site` composes first: the shipped runtime is the wac-plugged
# artifact (justfile `compose`), and a dist built from the bare one
# fails loudly in web/build.ts.
- run: just build-wasm site
- uses: actions/upload-pages-artifact@v3
with:
path: web/dist
Expand Down
8 changes: 5 additions & 3 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@ compose:
-o target/polyvisor_runtime.composed.wasm

# web/dist: exactly what a home origin serves.
site:
# The site ships the composed runtime, so `compose` is a prerequisite here
# and not only of `e2e`; pages.yml runs this recipe.
site: compose
deno task build

# web/dist plus the test fixtures the e2e scenarios need (apps/hostile). NOT
# what a home origin serves: the production Pages build runs `site`.
site-fixtures:
site-fixtures: compose
deno task build:fixtures

e2e: build-wasm compose site-fixtures
e2e: build-wasm site-fixtures
deno task e2e

# Everything CI runs, in order (docs/design.md "Delivery": cargo test,
Expand Down