From f5d78df7c6f685dea3167f2e655ada7270cfa3bb Mon Sep 17 00:00:00 2001 From: Maia <66437537+maia-s@users.noreply.github.com> Date: Mon, 1 Apr 2024 16:20:05 +0200 Subject: [PATCH] update github actions to test endian independent hashes on a big endian target (powerpc64) --- .github/workflows/rust.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1c279a6..6716e90 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,9 +2,9 @@ name: Rust on: push: - branches: [ "main" ] + branches: [ "main", "test-ci" ] pull_request: - branches: [ "main" ] + branches: [ "main", "test-ci" ] env: CARGO_TERM_COLOR: always @@ -16,6 +16,7 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: cargo-bins/cargo-binstall@main - name: Run tests (stable, no features) run: cargo test --release - name: Run tests (stable, feature fnv) @@ -30,3 +31,7 @@ jobs: run: cargo test --release --features std,bnum,fnv,spooky,xxh64 - name: Run tests (nightly, all features) run: rustup update nightly && cargo +nightly test --release --all-features + - name: Install cross-rs + run: cargo binstall --no-confirm cross + - name: Test endian independent hashes on big endian (powerpc64) + run: cross test --target powerpc64-unknown-linux-gnu --features fnv,xxh64