fix: crate build issues with stream
feature
#1532
Workflow file for this run
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
name: Rust | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }}-latest | |
strategy: | |
matrix: | |
channel: [stable, beta, nightly] | |
os: [ubuntu, macos, windows] | |
steps: | |
- uses: actions/checkout@v2 | |
# from: https://github.com/google/oss-fuzz/blob/7c3fe25727d36308fc32d34b1bd83895e52e1d44/.github/workflows/project_tests.yml#L65-L74 | |
- name: Clear unnecessary files | |
run: | | |
df -h | |
sudo swapoff -a | |
sudo rm -f /swapfile | |
sudo apt clean | |
docker rmi $(docker images -a -q) | |
df -h | |
echo "Remove large unused folders, inspired by https://github.com/apache/flink/blame/master/tools/azure-pipelines/free_disk_space.sh" | |
sudo bash -c '(ionice -c 3 nice -n 19 rm -rf /usr/share/dotnet/ /usr/local/graalvm/ /usr/local/.ghcup/ /usr/local/share/powershell /usr/local/share/chromium /usr/local/lib/android /usr/local/lib/node_modules)&' | |
- run: sudo apt install llvm | |
if: matrix.os == 'ubuntu' | |
- run: rustup default ${{ matrix.channel }} | |
- run: cargo build --verbose --all-targets | |
- run: cargo test | |
- run: cargo build --verbose --all-targets -F stream | |
- run: cargo test -F stream | |
wasm-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: rustup default stable | |
- run: rustup target add wasm32-unknown-unknown | |
- run: cargo build --verbose --target=wasm32-unknown-unknown --no-default-features | |
clippy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: cargo fmt --all -- --check | |
- run: cargo clippy --tests --examples |