Replace PCTX code mode with a Boa JavaScript runtime (#12952)
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
# v8-goose downloads a prebuilt librusty_v8 archive into target/<profile>/gn_out
|
||||
# and emits a rustc-link-search pointing at it. Cargo caches that build script
|
||||
# output and replays it on later builds instead of re-running the script, but
|
||||
# the Rust cache action prunes target/ before saving, so a restored cache can
|
||||
# keep the replayed link-search while the 131MB archive is gone. Linking then
|
||||
# fails with "could not find native static library `rusty_v8`".
|
||||
#
|
||||
# Drop the cached build script output whenever a directory it advertises is
|
||||
# missing, which forces the script to re-run and download the archive again.
|
||||
set -euo pipefail
|
||||
|
||||
[ -d target ] || exit 0
|
||||
|
||||
find target -type f -path '*/build/v8-goose-*/output' -print0 |
|
||||
while IFS= read -r -d '' output; do
|
||||
while IFS= read -r dir; do
|
||||
[ -n "$dir" ] || continue
|
||||
[ -d "$dir" ] && continue
|
||||
echo "v8-goose build output references missing $dir; forcing a rebuild"
|
||||
rm -rf "$(dirname "$output")"
|
||||
break
|
||||
done < <(sed -n 's/^cargo:rustc-link-search=\(.*\)$/\1/p' "$output")
|
||||
done
|
||||
@@ -93,9 +93,6 @@ jobs:
|
||||
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0
|
||||
|
||||
- name: Repair stale v8 prebuilt marker
|
||||
run: .github/scripts/repair-v8-prebuilt.sh
|
||||
|
||||
- name: Install Dependencies
|
||||
run: |
|
||||
sudo apt update -y
|
||||
@@ -321,9 +318,6 @@ jobs:
|
||||
sudo apt update -y
|
||||
sudo apt install -y libdbus-1-dev libxcb1-dev
|
||||
|
||||
- name: Repair stale v8 prebuilt marker
|
||||
run: .github/scripts/repair-v8-prebuilt.sh
|
||||
|
||||
- name: Check with MSRV toolchain
|
||||
run: cargo check --workspace --locked --all-targets
|
||||
env:
|
||||
@@ -340,9 +334,6 @@ jobs:
|
||||
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@ecabd13d1c56bd1345c230e542e9144811ad706f # v2.0.0
|
||||
|
||||
- name: Repair stale v8 prebuilt marker
|
||||
run: .github/scripts/repair-v8-prebuilt.sh
|
||||
|
||||
- name: Lint
|
||||
run: |
|
||||
source ./bin/activate-hermit
|
||||
@@ -350,7 +341,7 @@ jobs:
|
||||
# play nicely with hermit-managed rust
|
||||
hermit uninstall rustup
|
||||
export CARGO_INCREMENTAL=0
|
||||
cargo clippy --workspace --all-targets --exclude v8 -- -D warnings
|
||||
cargo clippy --workspace --all-targets -- -D warnings
|
||||
|
||||
schema-check:
|
||||
name: Check Generated Schemas are Up-to-Date
|
||||
|
||||
Reference in New Issue
Block a user