Skip to content

Commit 7a99d9e

Browse files
committed
ci: add test on big-endian arch in CI
1 parent 17db726 commit 7a99d9e

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/ci.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,3 +148,45 @@ jobs:
148148
- uses: actions/checkout@v3
149149
- uses: dtolnay/rust-toolchain@1.62.0
150150
- run: cargo check --all-features
151+
152+
bigendian:
153+
name: Test big-endian arch
154+
runs-on: ubuntu-latest
155+
steps:
156+
- uses: actions/checkout@v3
157+
- uses: uraimo/run-on-arch-action@v2
158+
with:
159+
arch: s390x
160+
distro: ubuntu_latest
161+
162+
# Used to cache the install steps
163+
githubToken: ${{ github.token }}
164+
165+
install: |
166+
# Install rust using rustup
167+
apt-get update -y
168+
apt-get install -y curl
169+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
170+
171+
# Install deps needed to build C crates
172+
apt-get install -y build-essential
173+
174+
# Install bindgen dependencies
175+
apt-get install -y llvm-dev libclang-dev clang
176+
177+
# Install openssh dev
178+
apt-get install -y libssl-dev
179+
180+
# Install git to speed update of crates.io idnex
181+
apt-get install -y git
182+
183+
# Trick to update the crates.io index, as it takes a long time
184+
# to build
185+
export PATH="~/.cargo/bin:$PATH"
186+
export CARGO_NET_GIT_FETCH_WITH_CLI=true
187+
cargo install empty-library || true
188+
189+
run: |
190+
export PATH="~/.cargo/bin:$PATH"
191+
cargo test
192+
cargo test --features authenticode

0 commit comments

Comments
 (0)