Skip to content

Commit

Permalink
test compile only on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Jun 5, 2024
1 parent c4b53a1 commit 01e4a87
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@ on:
- pull_request

jobs:
test:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
runs-on: ${{ matrix.os }}
linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -25,3 +20,11 @@ jobs:
- run: cargo test --all-features
- run: cargo bench
- run: cargo check --manifest-path fuzz/Cargo.toml
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo check
- run: cargo check --features variant
- run: cargo check --all-features
7 changes: 4 additions & 3 deletions src/filesystem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ pub trait Filesystem: Send + Sync {
/// ultimately point to a regular file.
fn regular_file_size(&self, path: &Path) -> io::Result<u64>;

/// Returns a list of files in the given directory.
/// Returns a list of files in the given directory. May filter for table
/// files.
///
/// # Errors
///
Expand Down Expand Up @@ -87,8 +88,8 @@ pub trait RandomAccessFile: Send + Sync {
Ok(buf[0])
}

/// Reads two bytes at a given offset, returning an integer in little
/// endian.
/// Reads two bytes at a given offset, and interprets them as a
/// little endian integer.
fn read_u16_le_at(&self, offset: u64, hint: ReadHint) -> io::Result<u16> {
let mut buf = [0; 2];
self.read_exact_at(&mut buf[..], offset, hint)?;
Expand Down

0 comments on commit 01e4a87

Please sign in to comment.