Skip to content
Draft
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
51 changes: 51 additions & 0 deletions .github/workflows/wasm-browser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0.

name: Browser WASM

on:
push:
branches:
- poc/wasm32-browser-stack
workflow_dispatch:

jobs:
minimal-toolchain:
name: No native compiler
runs-on: ubuntu-latest
container:
image: debian:bookworm-slim
env:
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER: ${{ github.workspace }}/ci/compiler-free-linker.sh
steps:
- name: Install transport tools
run: |
apt-get update
apt-get install --yes --no-install-recommends ca-certificates curl git libc6-dev libgcc-12-dev lld
rm -rf /var/lib/apt/lists/*
- uses: actions/checkout@v6
- name: Install Rust and wasm32
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs |
sh -s -- -y --profile minimal --default-toolchain 1.91.0
"$HOME/.cargo/bin/rustup" target add wasm32-unknown-unknown
echo "$HOME/.cargo/bin" >> "$GITHUB_PATH"
- name: Verify minimal toolchain
run: |
test -z "${RUSTFLAGS:-}"
for tool in cc gcc clang c++ g++ cmake; do
if command -v "$tool"; then
echo "unexpected native build tool: $tool" >&2
exit 1
fi
done
command -v ld.lld
test -x "$CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER"
- name: Check prefetched browser engine
run: |
cargo check --manifest-path kernel/wasm-check/Cargo.toml \
--target wasm32-unknown-unknown --locked
kernel/wasm-check/check-dependencies.sh
159 changes: 80 additions & 79 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading