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 Aug 27, 2023
1 parent 788a2cc commit 3b2a7b7
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,37 @@ jobs:
- run: |
cd boreal
cargo check --all-features
other-archs:
name: Test other architectures
runs-on: ubuntu-22.04
env:
CROSS_VERSION: v0.2.5
steps:
- uses: actions/checkout@v3
- name: Install and configure Cross
run: |
# Copied from rust-lang/regex CI:
# <https://github.com/rust-lang/regex/blob/329c6a32/.github/workflows/ci.yml>
dir="$RUNNER_TEMP/cross-download"
mkdir "$dir"
echo "$dir" >> $GITHUB_PATH
cd "$dir"
curl -LO "https://github.com/cross-rs/cross/releases/download/$CROSS_VERSION/cross-x86_64-unknown-linux-musl.tar.gz"
tar xf cross-x86_64-unknown-linux-musl.tar.gz
echo "CARGO=cross" >> $GITHUB_ENV
echo "TARGET=--target ${{ matrix.target }}" >> $GITHUB_ENV
- name: Run tests
run: cross test --target ${{ matrix.target }}
- name: Run tests with authenticode feature
run: cross test --target ${{ matrix.target }} --features authenticode

strategy:
fail-fast: false
matrix:
build: [s390x, aarch64]
include:
- build: s390x
target: s390x-unknown-linux-gnu
- build: aarch64
target: aarch64-unknown-linux-gnu
7 changes: 7 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[build]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update",
"apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH",
"apt-get install --assume-yes --no-install-recommends libclang-10-dev clang-10"
]

0 comments on commit 3b2a7b7

Please sign in to comment.