This commit is contained in:
Carl-Y 2024-02-29 14:53:29 +00:00 committed by GitHub
commit 0137dba366
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 33 additions and 0 deletions

View File

@ -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

View File

@ -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

8
scripts/build-macos-arm64.sh Executable file
View File

@ -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

7
scripts/tests-macos-arm64.sh Executable file
View File

@ -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