Remove BWE current_bitrate parameter #11
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: ['main'] | |
| pull_request: | |
| schedule: | |
| - cron: "22 3 * * 5" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| rust: [stable, beta, 1.81.0] | |
| crypto: | |
| - name: openssl | |
| os: ubuntu-latest | |
| - name: openssl | |
| os: macos-latest | |
| - name: openssl | |
| os: windows-latest | |
| features: openssl | |
| - name: aws-lc-rs | |
| os: ubuntu-latest | |
| - name: aws-lc-rs | |
| os: macos-latest | |
| - name: aws-lc-rs | |
| os: windows-latest | |
| - name: rust-crypto | |
| os: ubuntu-latest | |
| - name: rust-crypto | |
| os: macos-latest | |
| - name: rust-crypto | |
| os: windows-latest | |
| - name: wincrypto | |
| os: windows-latest | |
| - name: apple-crypto | |
| os: macos-latest | |
| runs-on: ${{ matrix.crypto.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: dtolnay/rust-toolchain@master | |
| id: toolchain | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install OpenSSL on Windows | |
| if: matrix.crypto.os == 'windows-latest' && matrix.crypto.name == 'openssl' | |
| shell: pwsh | |
| run: | | |
| Invoke-WebRequest https://www.firedaemon.com/download-firedaemon-openssl-3-6-zip -OutFile $env:TEMP\openssl.zip | |
| if ((Get-FileHash $env:TEMP\openssl.zip -Algorithm SHA256).Hash -ne "C1C831E8BCCE7D6C204D6813AAFB87C0D44DD88841AB31105185B55CDEC1D759") { throw "Checksum mismatch" } | |
| Expand-Archive $env:TEMP\openssl.zip -DestinationPath C:\openssl-3.6.0 -Force | |
| echo "OPENSSL_DIR=C:\openssl-3.6.0\x64" >> $env:GITHUB_ENV | |
| - name: Test with ${{ matrix.crypto.name }} | |
| run: cargo +${{steps.toolchain.outputs.name}} test --no-default-features --features ${{ matrix.crypto.features || matrix.crypto.name }} | |
| snowflake: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Martin's snowflake formatting rules | |
| uses: algesten/snowflake@v1.1.0 | |
| with: | |
| check_diff: true | |
| line_width_rules: 'CHANGELOG.md:120;c_cpp_properties.json:160;Cargo.toml:150;README.md:180;README.tpl:180;*.md:110;*.rs:110;*.toml:110;*.lock:200;*.svg:1000;DEFAULT=110' | |
| pii: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| id: toolchain | |
| with: | |
| toolchain: stable | |
| - uses: Swatinem/rust-cache@v1 | |
| - name: Test pii | |
| run: cargo +${{steps.toolchain.outputs.name}} test --test pii --features pii | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: dtolnay/rust-toolchain@master | |
| id: toolchain | |
| with: | |
| toolchain: stable | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v1 | |
| - name: fmt | |
| run: cargo +${{steps.toolchain.outputs.name}} fmt --all -- --check | |
| - name: clippy (default features) | |
| run: cargo +${{steps.toolchain.outputs.name}} clippy -- -D warnings | |
| - name: clippy (all crypto backends) | |
| run: | | |
| cargo +${{steps.toolchain.outputs.name}} clippy --no-default-features --features openssl -- -D warnings | |
| cargo +${{steps.toolchain.outputs.name}} clippy --no-default-features --features aws-lc-rs -- -D warnings | |
| cargo +${{steps.toolchain.outputs.name}} clippy --no-default-features --features rust-crypto -- -D warnings | |
| - name: doc | |
| run: cargo doc --no-deps | |
| env: | |
| RUSTDOCFLAGS: -Dwarnings | |
| fuzz-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: nightly | |
| components: rust-src | |
| - name: Install cargo-fuzz | |
| run: cargo install cargo-fuzz | |
| - name: Build fuzz targets | |
| run: cargo fuzz build | |
| related-crates: | |
| strategy: | |
| matrix: | |
| rust: [stable, beta, 1.81.0] | |
| dir: | |
| - name: proto | |
| os: ubuntu-latest | |
| - name: netem | |
| os: ubuntu-latest | |
| - name: crypto/apple-crypto | |
| os: macos-latest | |
| - name: crypto/aws-lc-rs | |
| os: ubuntu-latest | |
| - name: crypto/openssl | |
| os: ubuntu-latest | |
| - name: crypto/rust-crypto | |
| os: ubuntu-latest | |
| - name: crypto/wincrypto | |
| os: windows-latest | |
| runs-on: ${{ matrix.dir.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - uses: dtolnay/rust-toolchain@master | |
| id: toolchain | |
| with: | |
| toolchain: ${{ matrix.rust }} | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: fmt | |
| if: matrix.rust == 'stable' | |
| run: cargo +${{steps.toolchain.outputs.name}} fmt --manifest-path ${{ matrix.dir.name }}/Cargo.toml -- --check | |
| - name: clippy | |
| if: matrix.rust == 'stable' | |
| run: cargo +${{steps.toolchain.outputs.name}} clippy --manifest-path ${{ matrix.dir.name }}/Cargo.toml -- -D warnings | |
| - name: test | |
| run: cargo +${{steps.toolchain.outputs.name}} test --manifest-path ${{ matrix.dir.name }}/Cargo.toml | |
| # cargo-deny: | |
| # name: cargo-deny | |
| # # TODO: remove this matrix when https://github.com/EmbarkStudios/cargo-deny/issues/324 is resolved | |
| # strategy: | |
| # fail-fast: false | |
| # matrix: | |
| # platform: | |
| # - aarch64-apple-ios | |
| # - aarch64-linux-android | |
| # - i686-pc-windows-gnu | |
| # - i686-pc-windows-msvc | |
| # - i686-unknown-linux-gnu | |
| # - wasm32-unknown-unknown | |
| # - x86_64-apple-darwin | |
| # - x86_64-apple-ios | |
| # - x86_64-pc-windows-gnu | |
| # - x86_64-pc-windows-msvc | |
| # - x86_64-unknown-linux-gnu | |
| # - x86_64-unknown-redox | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: actions/checkout@v3 | |
| # - uses: EmbarkStudios/cargo-deny-action@v1 | |
| # with: | |
| # command: check | |
| # log-level: error | |
| # arguments: --all-features --target ${{ matrix.platform }} | |