Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a wasm_compatibility_check to ci #167

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
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