Skip to content

Commit 4858f90

Browse files
willglynnLegNeato
authored andcommitted
Build wasm32-unknown-unknown in CI (#278)
* Build wasm32-unknown-unknown in CI (#218) `cargo check --wasm32-unknown-unknown` is sufficient to demonstrate that the `juniper` and `juniper_codegen` crates can compile for WebAssembly, which should help avoid accidental regressions.
1 parent e6923de commit 4858f90

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ rust:
1111
- 1.29.0
1212
- 1.28.0
1313

14+
matrix:
15+
include:
16+
- language: rust
17+
rust: stable
18+
name: "check wasm32 support"
19+
install: rustup target add wasm32-unknown-unknown
20+
script: cargo check --target wasm32-unknown-unknown --package juniper --package juniper_codegen
21+
1422
env:
1523
global:
1624
- secure: "SsepHEYRmW9ee3RhxPpqGuPigZINFfA/yOwUJFseQt4t+Zs90r1xdl3Q8eDfPlnvBsL7Rd0QQrFDO7JUaimVLlgQkUnrl62o0CYzkodp+qtocyAHS00W6WTqi8Y6E6KBxPshCl03dRLaySUfx5TqTLTIHkJ0G6vDW35k7hRrA3221lRphs5rrpvAZ21pqsDsNLH3HVo792L6A0kOtBa3ocw1pgHLxnBbArIViu2htUuFvY/TgsmVbAdlow0efw/xkcJ/p0/r5q7igLek6Iqk8udfRc7CktvoiFQ2vUnhtNtQu/zYll3Q7OUx5d+w5lhbzz2QINmsezBEisH9k1haL7dMviLPp0pn4WZed60KovO0Iqfgjy1utTaKvJVfNWYsgkfU8c9a/z2rcZOKwXNKQW2ptBrtVjaB9dk7eMoyuFCDZwNtKqvG+ZKmvMpun+R8mmx+buOmN8Vlf5ygIoGxz3nbEtlLYGVTXHfdXXqRkFIwtiYVJEO7SLRKT9pbx1E++ARsi2+y8bXJT4e4z0osYMq9EsiFUpw3J2gcshrgseqkB7UgCZ3SXuitJnJNfDAU3a3nwwS/JiAunZMNnC4rKUBbl7WbTB4Cpw7EgVOlCqcyyzlkNl3xabLzTFzLOfSHLTVX5FmGNsD21vBoS5/8ejftx9wuV3rGHxuO3i3+A3k="

_build/azure-pipelines-template.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,8 @@ jobs:
4949
- script: cargo make workspace-ci-flow --no-workspace
5050
env: { CARGO_MAKE_RUN_CODECOV: true }
5151
displayName: Build and run tests
52+
- script: |
53+
rustup target add wasm32-unknown-unknown
54+
cargo check --target wasm32-unknown-unknown --package juniper --package juniper_codegen
55+
displayName: Check WebAssembly target
56+
condition: eq(variables['rustup_toolchain'], 'stable')

0 commit comments

Comments
 (0)