Skip to content

Commit

Permalink
ci: add test on big-endian arch in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
vthib committed Feb 26, 2023
1 parent f60bc4c commit d484023
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,45 @@ jobs:
- uses: actions/checkout@v3
- uses: dtolnay/[email protected]
- run: cargo check --tests --all-features

bigendian:
name: Test big-endian arch
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: uraimo/run-on-arch-action@v2
with:
arch: s390x
distro: ubuntu_latest

# Used to cache the install steps
githubToken: ${{ github.token }}

install: |
# Install rust using rustup
apt-get update -y
apt-get install -y curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
# Install deps needed to build C crates
apt-get install -y build-essential
# Install bindgen dependencies
apt-get install -y llvm-dev libclang-dev clang
# Install openssh dev
apt-get install -y libssl-dev
# Install git to speed update of crates.io idnex
apt-get install -y git
# Trick to update the crates.io index, as it takes a long time
# to build
export PATH="~/.cargo/bin:$PATH"
export CARGO_NET_GIT_FETCH_WITH_CLI=true
cargo install empty-library
run: |
export PATH="~/.cargo/bin:$PATH"
cargo test
cargo test --features openssl

0 comments on commit d484023

Please sign in to comment.