macOS: Try to run unit tests

This commit is contained in:
Jérôme Leclercq 2022-03-20 12:23:50 +01:00
parent 6b85136ed7
commit 1edc82f9cd
2 changed files with 5 additions and 14 deletions

View File

@ -29,11 +29,6 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
# Install system dependencies
- name: Install system dependencies
run: |
brew install libx11
# Force xmake to a specific folder (for cache) # Force xmake to a specific folder (for cache)
- name: Set xmake env - name: Set xmake env
run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV run: echo "XMAKE_GLOBALDIR=${{ runner.workspace }}/xmake-global" >> $GITHUB_ENV
@ -67,20 +62,16 @@ jobs:
# Build the engine # Build the engine
- name: Build Nazara - name: Build Nazara
run: | run: |
xmake build -v NazaraRenderer
xmake build -v NazaraPhysics2D
xmake build -v NazaraPhysics3D xmake build -v NazaraPhysics3D
xmake build -v NazaraGraphics
xmake build -v NazaraWidgets xmake build -v NazaraWidgets
xmake build -v NazaraAudio
xmake build -v NazaraNetwork
xmake build -v NazaraShaderNodes xmake build -v NazaraShaderNodes
xmake build -v PluginAssimp xmake build -v PluginAssimp
xmake build -v NazaraUnitTests
# Run unit tests # Run unit tests
#- name: Run unit tests - name: Run unit tests
# if: matrix.mode != 'releasedbg' if: matrix.mode != 'releasedbg'
# run: xmake run NazaraUnitTests run: xmake run NazaraUnitTests
# Install the result files # Install the result files
# - name: Install Nazara # - name: Install Nazara

View File

@ -72,7 +72,7 @@ local modules = {
add_defines("SDL_VIDEO_DRIVER_WAYLAND=1") add_defines("SDL_VIDEO_DRIVER_WAYLAND=1")
elseif is_plat("macosx") then elseif is_plat("macosx") then
add_defines("SDL_VIDEO_DRIVER_COCOA=1") add_defines("SDL_VIDEO_DRIVER_COCOA=1")
add_packages("libx11") add_packages("libx11", { links = {} }) -- we only need X11 headers
end end
end end
}, },