mirror of
https://github.com/encounter/lzokay-rs.git
synced 2025-10-21 08:25:47 +00:00
Update ci & fix vec import
This commit is contained in:
parent
939ba1f0c1
commit
b80a58d1be
28
.github/workflows/build.yaml
vendored
28
.github/workflows/build.yaml
vendored
@ -10,29 +10,19 @@ jobs:
|
|||||||
platform: [ ubuntu-latest, macos-latest, windows-latest ]
|
platform: [ ubuntu-latest, macos-latest, windows-latest ]
|
||||||
toolchain: [ stable, 1.81.0, nightly ]
|
toolchain: [ stable, 1.81.0, nightly ]
|
||||||
features:
|
features:
|
||||||
- compress,alloc
|
- compress,alloc
|
||||||
- compress,decompress
|
- compress,decompress
|
||||||
- compress,decompress,std
|
- compress,decompress,std
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
steps:
|
steps:
|
||||||
- name: Install LLVM and Clang # required for bindgen to work, see https://github.com/rust-lang/rust-bindgen/issues/1797
|
- name: Checkout
|
||||||
uses: KyleMayes/install-llvm-action@v2.0.8
|
uses: actions/checkout@v2
|
||||||
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
|
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- uses: actions-rs/toolchain@v1
|
- name: Setup Rust toolchain
|
||||||
|
uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
toolchain: ${{ matrix.toolchain }}
|
toolchain: ${{ matrix.toolchain }}
|
||||||
override: true
|
- name: Cargo test
|
||||||
- uses: actions-rs/cargo@v1
|
run: cargo test --release --no-default-features --features ${{ matrix.features }}
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --release --no-default-features --features ${{ matrix.features }}
|
|
||||||
|
@ -57,7 +57,7 @@ extern crate alloc;
|
|||||||
use alloc::{boxed::Box, vec::Vec};
|
use alloc::{boxed::Box, vec::Vec};
|
||||||
use core::{cmp, mem::size_of};
|
use core::{cmp, mem::size_of};
|
||||||
#[cfg(all(feature = "alloc", feature = "std"))]
|
#[cfg(all(feature = "alloc", feature = "std"))]
|
||||||
use std::{boxed::Box, vec::Vec};
|
use std::{boxed::Box, vec, vec::Vec};
|
||||||
|
|
||||||
use crate::Error;
|
use crate::Error;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user