view third_party/emsdk/test/test_bazel.ps1 @ 271:13d61401c57d

redirect Copilot cache to service state Set XDG_CACHE_HOME from the configured inference state so the systemd service can extract Copilot outside its protected home directory. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Fri, 07 Aug 2026 13:24:05 -0700
parents 8d17f6e6e290
children
line wrap: on
line source

$ErrorActionPreference = 'Stop'

Set-Location bazel

bazel build //hello-world:hello-world-wasm
if (-not $?) { Exit $LastExitCode }

bazel build //hello-world:hello-world-wasm-simd
if (-not $?) { Exit $LastExitCode }

Set-Location test_external

bazel build //:hello-world-wasm
if (-not $?) { Exit $LastExitCode }

bazel build //long_command_line:long_command_line_wasm
if (-not $?) { Exit $LastExitCode }

bazel build //:hello-embind-wasm --compilation_mode dbg # debug
if (-not $?) { Exit $LastExitCode }

# Test use of the closure compiler
bazel build //:hello-embind-wasm --compilation_mode opt # release
if (-not $?) { Exit $LastExitCode }

Set-Location ..\test_secondary_lto_cache

bazel build //:hello-world-wasm
if (-not $?) { Exit $LastExitCode }