-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add test on big-endian arch in CI
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |