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
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Keep runtime-cache source inputs identical across operating systems.
/Cargo.toml text eol=lf
/Cargo.lock text eol=lf
/crates/core/build.rs text eol=lf
/crates/runtime/** text=auto eol=lf
6 changes: 4 additions & 2 deletions .github/actions/setup-runtime-cache/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Setup runtime wasm cache
description: Restore or build development runtime Wasm shared across runner operating systems

runs:
using: composite
Expand All @@ -8,13 +9,14 @@ runs:
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: crates/core/prebuilt
key: runtime-wasm-v2-${{ hashFiles('Cargo.toml', 'Cargo.lock', 'crates/runtime/**', 'crates/core/build.rs') }}
key: runtime-wasm-v3-${{ hashFiles('Cargo.toml', 'Cargo.lock', 'crates/runtime/**', 'crates/core/build.rs') }}
enableCrossOsArchive: true

- name: Build runtime wasm
if: steps.cache.outputs.cache-hit != 'true'
shell: bash
run: |
cargo build -p componentize-qjs
cargo build --locked -p componentize-qjs
mkdir -p crates/core/prebuilt
for f in runtime.wasm runtime-opt-size.wasm runtime-sync.wasm runtime-opt-size-sync.wasm; do
src=$(find target -path "*/out/$f" -type f | sort | tail -n 1)
Expand Down
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,6 @@ incremental = false
debug = "line-tables-only"
incremental = false
opt-level = 3

[profile.test.package.componentize-qjs-cli]
opt-level = 1
Loading
Loading