Skip to content

Commit

Permalink
test: use cross test
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Jun 26, 2024
1 parent 9896d74 commit a11cf4b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,20 @@ jobs:
matrix:
target:
- aarch64-unknown-linux-gnu
# - aarch64-linux-android
- aarch64-unknown-linux-musl
- i686-unknown-linux-gnu
- powerpc64-unknown-linux-gnu
- riscv64gc-unknown-linux-gnu
# - aarch64-linux-android
# - i686-linux-android
# - x86_64-linux-android
# - i686-unknown-linux-gnu
- powerpc64-unknown-linux-gnu
#- mips64-unknown-linux-gnuabi64
- riscv64gc-unknown-linux-gnu
#- x86_64-apple-darwin
#- aarch64-apple-darwin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: cross build --target ${{ matrix.target }}
- name: cross test
run: |
cargo install cross
cross build --target ${{ matrix.target }}
cross test -r --features all --target ${{ matrix.target }}
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ path = "src/lib.rs"
default = []
bloom = ["dep:seahash"]
segment_history = ["dep:serde", "dep:serde_json"]
all = ["bloom"]

[dependencies]
byteorder = "1.5.0"
Expand Down
3 changes: 0 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,6 @@
#![warn(clippy::expect_used)]
#![allow(clippy::missing_const_for_fn)]

#[cfg(not(target_pointer_width = "64"))]
compile_error!("compilation is only allowed for 64-bit targets");

mod block_cache;

#[doc(hidden)]
Expand Down

0 comments on commit a11cf4b

Please sign in to comment.