From 23233bd4c9ed1ad21bc692297f32d433ee51aa38 Mon Sep 17 00:00:00 2001 From: Carl-Y <52552476+HH45137@users.noreply.github.com> Date: Wed, 28 Feb 2024 21:27:53 +0800 Subject: [PATCH] Add apple silicon test --- .github/workflows/tests.yml | 9 +++++++++ scripts/tests-macos-arm64.sh | 7 +++++++ 2 files changed, 16 insertions(+) create mode 100755 scripts/tests-macos-arm64.sh diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 407239c4..c1cf2ffc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,6 +30,15 @@ jobs: run: | scripts/tests-macos-amd64.sh + tests-macos-arm64: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + - name: Run tests macos-arm64 + run: | + scripts/tests-macos-arm64.sh + tests-windows-i386: runs-on: windows-2019 diff --git a/scripts/tests-macos-arm64.sh b/scripts/tests-macos-arm64.sh new file mode 100755 index 00000000..2befa2d2 --- /dev/null +++ b/scripts/tests-macos-arm64.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +git submodule init && git submodule update +./waf configure -T release --sanitize=address,undefined --disable-warns --tests --prefix=out/ $* && +./waf install && +cd out && +DYLD_LIBRARY_PATH=bin/ ./unittest || exit 1