-
Notifications
You must be signed in to change notification settings - Fork 999
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(webtransport): add WebTransport for WASM environments
This PR implements `Transport` for WebTransport for browsers by using web-sys. Related: #3846. Resolves: #3825. Pull-Request: #4015. Co-Authored-By: Yiannis Marangos <[email protected]> Co-Authored-By: Maciej Zwoliński <[email protected]> Co-Authored-By: Yiannis Marangos <[email protected]>
- Loading branch information
Showing
41 changed files
with
3,909 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,12 +76,41 @@ jobs: | |
run: | | ||
PACKAGE_VERSION=$(cargo metadata --format-version=1 --no-deps | jq -e -r '.packages[] | select(.name == "'"$CRATE"'") | .version') | ||
SPECIFIED_VERSION=$(tomlq "workspace.dependencies.$CRATE.version" --file ./Cargo.toml) | ||
echo "Package version: $PACKAGE_VERSION"; | ||
echo "Specified version: $SPECIFIED_VERSION"; | ||
test "$PACKAGE_VERSION" = "$SPECIFIED_VERSION" | ||
wasm_tests: | ||
name: Run all WASM tests | ||
runs-on: ubuntu-latest | ||
env: | ||
CHROMEDRIVER_VERSION: '114.0.5735.90' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
target: wasm32-unknown-unknown | ||
|
||
- uses: taiki-e/cache-cargo-install-action@v1 | ||
with: | ||
tool: [email protected] | ||
|
||
- name: Install Google Chrome | ||
run: | | ||
curl -o /tmp/google-chrome-stable_amd64.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROMEDRIVER_VERSION}-1_amd64.deb | ||
sudo dpkg -i /tmp/google-chrome-stable_amd64.deb | ||
- name: Install chromedriver | ||
uses: nanasess/setup-chromedriver@v2 | ||
with: | ||
chromedriver-version: ${{ env.CHROMEDRIVER_VERSION }} | ||
|
||
- name: Run all tests | ||
run: ./wasm-tests/run-all.sh | ||
|
||
cross: | ||
name: Compile on ${{ matrix.target }} | ||
strategy: | ||
|
@@ -284,6 +313,8 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: dtolnay/rust-toolchain@stable | ||
|
||
- id: cargo-metadata | ||
run: | | ||
WORKSPACE_MEMBERS=$(cargo metadata --format-version=1 --no-deps | jq -c '.packages | map(select(.publish == null) | .name)') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.