Skip to content

Commit

Permalink
use WX with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
pmqs committed Feb 10, 2024
1 parent be422af commit 4039767
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,59 @@ jobs:
- name: Ubuntu GCC
os: ubuntu-latest
compiler: gcc
cflags: -Werror

# Test out of source builds
- name: Ubuntu GCC OSB
os: ubuntu-latest
compiler: gcc
cflags: -Werror
build-dir: ../build
src-dir: ../zlib

- name: Ubuntu GCC -O3
os: ubuntu-latest
compiler: gcc
cflags: -O3
cflags: -O3 -Werror

- name: Ubuntu Clang
os: ubuntu-latest
compiler: clang
cflags: -Werror

- name: Ubuntu Clang Debug
os: ubuntu-latest
compiler: clang
cflags: -Werror
build-config: Debug

- name: Windows MSVC Win32
os: windows-latest
compiler: cl
cflags: /WX
cmake-args: -A Win32

- name: Windows MSVC Win64
os: windows-latest
compiler: cl
cflags: /WX
cmake-args: -A x64

- name: Windows GCC
os: windows-latest
compiler: gcc
cflags: -Werror
cmake-args: -G Ninja

- name: macOS Clang
os: macos-latest
compiler: clang
cflags: -Werror

- name: macOS GCC
os: macos-latest
compiler: gcc-11
cflags: -Werror

steps:
- name: Checkout repository
Expand All @@ -69,7 +78,7 @@ jobs:
run: cmake -S ${{ matrix.src-dir || '.' }} -B ${{ matrix.build-dir || '.' }} ${{ matrix.cmake-args }} -D CMAKE_BUILD_TYPE=${{ matrix.build-config || 'Release' }}
env:
CC: ${{ matrix.compiler }}
CFLAGS: ${{ matrix.cflags }} -Werror
CFLAGS: ${{ matrix.cflags }}

- name: Compile source code
run: cmake --build ${{ matrix.build-dir || '.' }} --config ${{ matrix.build-config || 'Release' }}
Expand Down

0 comments on commit 4039767

Please sign in to comment.