Skip to content

Set locked to false to fix cargo-minimal-versions installation #78

Set locked to false to fix cargo-minimal-versions installation

Set locked to false to fix cargo-minimal-versions installation #78

Workflow file for this run

name: Run autobahn testsuite and publish results
on:
push:
branches:
- main
env:
CARGO_BUILD_TARGET: x86_64-unknown-linux-gnu
jobs:
autobahn:
name: Run autobahn testsuite and publish results
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
components: rust-src
- name: Prepare directories
run: |
mkdir autobahn/reports
echo "<!DOCTYPE html><html><head><title>Autobahn test suite results</title></head><body><a href="clients/index.html">Clients</a><br><a href="servers/index.html">Servers</a></body></html>" > autobahn/reports/index.html
- name: Build tokio-websockets (SIMD)
env:
RUSTFLAGS: -C target-cpu=native
run: |
cargo build --release --examples --features simd
mv target/x86_64-unknown-linux-gnu/release/examples/autobahn_client target/x86_64-unknown-linux-gnu/release/examples/autobahn_client_simd
mv target/x86_64-unknown-linux-gnu/release/examples/autobahn_server target/x86_64-unknown-linux-gnu/release/examples/autobahn_server_simd
- name: Build tokio-websockets (no SIMD) and tokio-tungstenite
run: |
cargo build --release --examples
- name: Run testsuite
run: |
./scripts/autobahn_client_ci.sh
./scripts/autobahn_server_ci.sh
- name: Upload results to GitHub pages
if: success()
uses: crazy-max/ghaction-github-pages@v3
with:
target_branch: gh-pages
build_dir: autobahn/reports
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}