Skip to content

Commit

Permalink
Build 32, 64-bits for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaivel committed Dec 3, 2023
1 parent 7bee206 commit 2f8c748
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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++
Expand All @@ -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
Expand Down

0 comments on commit 2f8c748

Please sign in to comment.