diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1e7dd29..8c18522 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,11 @@ jobs: - os: windows-latest c_compiler: cl cpp_compiler: cl + arch: x64 + - os: windows-latest + c_compiler: cl + cpp_compiler: cl + arch: Win32 - os: ubuntu-latest c_compiler: clang cpp_compiler: clang++ @@ -45,13 +50,23 @@ jobs: run: | sudo apt-get install -y libepoxy-dev libsdl2-dev libx11-dev - # removed -DCMAKE_GENERATOR_PLATFORM=${{ matrix.arch }} - - name: Configure CMake + - name: Configure CMake for Linux + if: matrix.os == 'ubuntu-latest' + run: > + cmake -B ${{ steps.strings.outputs.build-output-dir }} + -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} + -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} + -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} + -S ${{ github.workspace }} + + - name: Configure CMake for Windows + if: matrix.os == 'windows-latest' run: > cmake -B ${{ steps.strings.outputs.build-output-dir }} -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} + -DCMAKE_GENERATOR_PLATFORM=${{ matrix.arch }} -S ${{ github.workspace }} - name: Build