Test Mac universal 2 builds.
@@ -7,8 +7,15 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
+ fail-fast: false
matrix:
- os: [macos-11.0, ubuntu-20.04]
+ os: [ubuntu-20.04]
+ scons-options: ['ARCH=x86_64']
+ include:
+ - os: 'macos-11.0'
+ scons-options: 'ARCH=universal2'
+ - os: 'macos-11.0'
+ scons-options: 'ARCH=x86_64'
steps:
- uses: actions/checkout@v2
@@ -23,8 +30,10 @@ jobs:
brew install scons sdl2
- name: Build package.
working-directory: buildsys/scons
+ env:
+ SCONS_OPTIONS: ${{ matrix.scons-options }}
run: |
- scons develop_all dist -j 3 -s CPPDEFINES=NDEBUG ARCH=x86_64 MODE=DEBUG_RELEASE
+ scons develop_all dist -j 3 -s CPPDEFINES=NDEBUG MODE=DEBUG_RELEASE $SCONS_OPTIONS
- name: Unit tests
env:
LD_LIBRARY_PATH: ${{github.workspace}}
