diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index f1fb97f..c48bc0d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -10,29 +10,19 @@ jobs: platform: [ ubuntu-latest, macos-latest, windows-latest ] toolchain: [ stable, 1.81.0, nightly ] features: - - compress,alloc - - compress,decompress - - compress,decompress,std + - compress,alloc + - compress,decompress + - compress,decompress,std fail-fast: false runs-on: ${{ matrix.platform }} steps: - - name: Install LLVM and Clang # required for bindgen to work, see https://github.com/rust-lang/rust-bindgen/issues/1797 - uses: KyleMayes/install-llvm-action@v2.0.8 - if: matrix.platform == 'windows-latest' - with: - version: 21.1.3 - directory: ${{ runner.temp }}/llvm - - name: Set LIBCLANG_PATH - run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV - if: matrix.platform == 'windows-latest' - - uses: actions/checkout@v2 + - name: Checkout + uses: actions/checkout@v2 with: submodules: recursive - - uses: actions-rs/toolchain@v1 + - name: Setup Rust toolchain + uses: dtolnay/rust-toolchain@master with: toolchain: ${{ matrix.toolchain }} - override: true - - uses: actions-rs/cargo@v1 - with: - command: test - args: --release --no-default-features --features ${{ matrix.features }} + - name: Cargo test + run: cargo test --release --no-default-features --features ${{ matrix.features }} diff --git a/src/compress.rs b/src/compress.rs index 1c94e9c..eb88d23 100644 --- a/src/compress.rs +++ b/src/compress.rs @@ -57,7 +57,7 @@ extern crate alloc; use alloc::{boxed::Box, vec::Vec}; use core::{cmp, mem::size_of}; #[cfg(all(feature = "alloc", feature = "std"))] -use std::{boxed::Box, vec::Vec}; +use std::{boxed::Box, vec, vec::Vec}; use crate::Error;