File tree Expand file tree Collapse file tree 2 files changed +63
-0
lines changed
Expand file tree Collapse file tree 2 files changed +63
-0
lines changed Original file line number Diff line number Diff line change @@ -285,3 +285,49 @@ jobs:
285285 " --no-default-features --features=object,authenticode,authenticode-verify" ,
286286 " --all-features"
287287 ]
288+
289+ other-archs :
290+ name : Test other architectures
291+ runs-on : ubuntu-22.04
292+ env :
293+ CROSS_VERSION : v0.2.5
294+ steps :
295+ - uses : actions/checkout@v3
296+
297+ - name : Install and configure Cross
298+ run : |
299+ # Copied from rust-lang/regex CI:
300+ # <https://github.com/rust-lang/regex/blob/329c6a32/.github/workflows/ci.yml>
301+ dir="$RUNNER_TEMP/cross-download"
302+ mkdir "$dir"
303+ echo "$dir" >> $GITHUB_PATH
304+ cd "$dir"
305+ curl -LO "https://github.com/cross-rs/cross/releases/download/$CROSS_VERSION/cross-x86_64-unknown-linux-musl.tar.gz"
306+ tar xf cross-x86_64-unknown-linux-musl.tar.gz
307+ echo "CARGO=cross" >> $GITHUB_ENV
308+ echo "TARGET=--target ${{ matrix.target }}" >> $GITHUB_ENV
309+
310+ - name : Build test helpers
311+ run : |
312+ cd boreal-test-helpers
313+ ${{ env.CARGO }} build $TARGET
314+
315+ - name : Run tests
316+ env :
317+ YARA_CRYPTO_LIB : openssl
318+ run : ${{ env.CARGO }} test $TARGET
319+
320+ - name : Run tests with authenticode
321+ env :
322+ YARA_CRYPTO_LIB : openssl
323+ run : ${{ env.CARGO }} test --features authenticode-verify $TARGET
324+
325+ strategy :
326+ fail-fast : false
327+ matrix :
328+ build : [s390x, aarch64]
329+ include :
330+ - build : s390x
331+ target : s390x-unknown-linux-gnu
332+ - build : aarch64
333+ target : aarch64-unknown-linux-gnu
Original file line number Diff line number Diff line change 1+ [target .s390x-unknown-linux-gnu ]
2+ image = " ghcr.io/cross-rs/s390x-unknown-linux-gnu:main"
3+ pre-build = [
4+ " dpkg --add-architecture $CROSS_DEB_ARCH" ,
5+ " apt-get update" ,
6+ " apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH" ,
7+ " apt-get install --assume-yes --no-install-recommends libclang-10-dev clang-10"
8+ ]
9+
10+ [target .aarch64-unknown-linux-gnu ]
11+ image = " ghcr.io/cross-rs/aarch64-unknown-linux-gnu:main"
12+ pre-build = [
13+ " dpkg --add-architecture $CROSS_DEB_ARCH" ,
14+ " apt-get update" ,
15+ " apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH" ,
16+ " apt-get install --assume-yes --no-install-recommends libclang-10-dev clang-10"
17+ ]
You can’t perform that action at this time.
0 commit comments