Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,19 @@ jobs:
run: |
PLATFORM_CONF=""
if [ ${{ matrix.confs.test }} ]; then
PLATFORM_CONF="$PLATFORM_CONF --examples=y --tests=y" >> $GITHUB_ENV
PLATFORM_CONF="$PLATFORM_CONF --examples=y --tests=y"
fi
# MinGW has some issues with unitybuild
if [ "${{ matrix.confs.plat }}" != "mingw" ]; then
PLATFORM_CONF="$PLATFORM_CONF --unitybuild=y" >> $GITHUB_ENV
PLATFORM_CONF="$PLATFORM_CONF --unitybuild=y"
fi
# MinGW 32bits fails because it allocates too much memory for the system
if [ "${{ matrix.confs.plat }}" == "mingw" ] && [ "${{ matrix.confs.msystem }}" == "mingw32" ]; then
echo "BUILD_CONF=-j1" >> $GITHUB_ENV
fi
# Android and Emscripten don't support filesystem watcher
if [ "${{ matrix.confs.plat }}" == "android" ] || [ "${{ matrix.confs.plat }}" == "wasm" ]; then
PLATFORM_CONF="$PLATFORM_CONF --fs_watcher=n" >> $GITHUB_ENV
PLATFORM_CONF="$PLATFORM_CONF --fs_watcher=n"
fi
echo "ADDITIONAL_CONF=${{ env.ADDITIONAL_CONF }} $PLATFORM_CONF" >> $GITHUB_ENV
FILENAME="nzsl_${{ matrix.confs.plat }}_${{ matrix.confs.arch }}_${{ matrix.kind }}"
Expand Down Expand Up @@ -176,7 +180,7 @@ jobs:

# Build library and tests
- name: Build library
run: xmake
run: xmake ${{ env.BUILD_CONF }}

# Run unit tests
- name: Run unit tests
Expand Down
Loading