Skip to content

Commit

Permalink
fix(github): try to update github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
oyvindln committed Nov 20, 2024
1 parent 423bdf8 commit c179b18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 23 deletions.
31 changes: 8 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,30 +28,16 @@ jobs:
os: windows-latest
rust: stable-x86_64-gnu
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
override: true
toolchain: ${{ matrix.rust }}
- run: cargo test --manifest-path ./miniz_oxide/Cargo.toml
- run: cargo test --manifest-path ./miniz_oxide/Cargo.toml --features simd
- run: cargo test --manifest-path ./miniz_oxide/Cargo.toml --no-default-features
- run: cargo build --manifest-path ./miniz_oxide/Cargo.toml --no-default-features
- run: cargo test

# rustfmt:
# name: Rustfmt
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# components: rustfmt # seems to not work?
# toolchain: stable
# - run: rustup toolchain install stable --component rustfmt
# - run: cargo fmt -p miniz_oxide -- --check
- name: Test minimal
if: ${{ matrix.rust != '1.56.0' }}
run: cargo test

wasm:
name: WebAssembly
Expand All @@ -60,10 +46,9 @@ jobs:
matrix:
target: [wasm32-unknown-unknown, wasm32-wasi]
steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
profile: minimal
toolchain: stable
target: ${{ matrix.target }}
targets: ${{ matrix.target }}
- run: cargo build -p miniz_oxide --target ${{ matrix.target }}
1 change: 1 addition & 0 deletions miniz_oxide/src/inflate/output_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ impl<'a> InputWrapper<'a> {
}

#[inline]
#[cfg(target_pointer_width = "64")]
pub fn read_u32_le(&mut self) -> u32 {
let ret = {
let four_bytes: [u8; 4] = self.slice[..4].try_into().unwrap_or_default();
Expand Down

0 comments on commit c179b18

Please sign in to comment.