Skip to content

Commit

Permalink
Actually run tests on a big endian architecture on CI (#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnatsel authored Dec 30, 2024
1 parent 8336ff2 commit 0a0fba1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 204 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,31 @@ jobs:
env:
FEATURES: ${{ matrix.features }}
powerpc_cross:
# github actions does not support big endian systems directly, but it does support QEMU.
# so we install qemu, then build and run the tests in an emulated powerpc system.
# note: you can also use this approach to test for big endian locally.
runs-on: ubuntu-latest

# we are using the cross project for cross compilation:
# https://github.com/cross-rs/cross
steps:
- uses: actions/checkout@v4
- name: add_cross_target
run: |
rustup target add powerpc-unknown-linux-gnu
cargo build --target powerpc-unknown-linux-gnu
- uses: actions/checkout@v4

- name: Install or use cached cross-rs/cross
uses: baptiste0928/cargo-install@v1
with:
crate: cross

- name: Cache Cargo Dependencies
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true

- name: Start Docker (required for cross-rs)
run: sudo systemctl start docker

- name: Cross-Run Tests in powerpc-unknown-linux-gnu using Qemu
run: cross test --release --target powerpc-unknown-linux-gnu --verbose -v
test_all:
strategy:
matrix:
Expand Down
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ byteorder = "1.5.0"
clap = { version = "3.0", features = ["derive"] }
criterion = "0.4.0"
getopts = "0.2.14"
glium = { version = "0.32", features = ["glutin"], default-features = false }
glob = "0.3"
rand = "0.8.4"
term = "1.0.1"
Expand Down
198 changes: 0 additions & 198 deletions examples/show.rs

This file was deleted.

0 comments on commit 0a0fba1

Please sign in to comment.