Skip to content
Draft
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
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,27 @@ jobs:

- run: cargo test --verbose --workspace
- run: cargo doc --verbose

wasm_compatibility_check:
# Check if the crate is compatible with the
# Precompute Assignments Server.
name: WASM Compatibility Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: ${{ !inputs.test_data_branch }}
repository: Eppo-exp/eppo-multiplatform
ref: ${{ env.SDK_BRANCH }}

- name: Add wasm32-wasip1 target
run: rustup target add wasm32-wasip1

- name: Check WASM compatibility
run: |
cargo check -p eppo_core --target wasm32-wasip1 --no-default-features || {
echo "Error: WASM compatibility check failed!"
echo "If you added a dependency that's incompatible with wasm32-wasip1,"
echo "please make it part of a cargo feature flag that is disabled by default."
exit 1
}
Loading