diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c11a8e2..53aaa433 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -109,3 +109,12 @@ jobs: - name: Build dedicated macos-amd64 run: | scripts/build-macos-amd64.sh -d + + build-macos-arm64: + runs-on: macos-14 + + steps: + - uses: actions/checkout@v2 + - name: Build macos-arm64 + run: | + scripts/build-macos-arm64.sh \ No newline at end of file diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 407239c4..ef2f4719 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-14 + + 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/build-macos-arm64.sh b/scripts/build-macos-arm64.sh new file mode 100755 index 00000000..80174a98 --- /dev/null +++ b/scripts/build-macos-arm64.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +git submodule init && git submodule update + +brew install sdl2 freetype2 fontconfig pkg-config opus libpng libedit + +python3 ./waf configure -T debug --disable-warns $* && +python3 ./waf build diff --git a/scripts/tests-macos-arm64.sh b/scripts/tests-macos-arm64.sh new file mode 100755 index 00000000..ade3f27f --- /dev/null +++ b/scripts/tests-macos-arm64.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +git submodule init && git submodule update +python3 ./waf configure -T release --sanitize=address,undefined --disable-warns --tests --prefix=out/ $* && +python3 ./waf install && +cd out && +DYLD_LIBRARY_PATH=bin/ ./unittest || exit 1