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 check test results during cross compile #92

Merged
merged 2 commits into from
Aug 14, 2024
Merged
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
17 changes: 3 additions & 14 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:

test_big_endian:
# 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 mips system.
# 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 to mips:
# we are using the cross project for cross compilation:
# https://github.com/cross-rs/cross
steps:
- uses: actions/checkout@v4
Expand All @@ -61,19 +61,8 @@ jobs:
- name: Start Docker (required for cross-rs)
run: sudo systemctl start docker

- name: Cross-Compile project to powerpc-unknown-linux-gnu
run: |
cross build --target=powerpc-unknown-linux-gnu --verbose -v --no-default-features --features "$FEATURES"
env:
FEATURES: ${{ matrix.features }}

# https://github.com/cross-rs/cross#supported-targets
- name: Cross-Run Tests in powerpc-unknown-linux-gnu using Qemu
continue-on-error: true
run: |
cross test --target powerpc-unknown-linux-gnu --verbose -v --no-default-features --features "$FEATURES"
env:
FEATURES: ${{ matrix.features }}
run: cross test --target powerpc-unknown-linux-gnu --verbose -v

clippy:
runs-on: ubuntu-latest
Expand Down
Loading