Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually run tests on a big endian architecture on CI #561

Merged
merged 3 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading