Update ci_src_examples_win.yml

This commit is contained in:
Ray 2020-01-10 15:52:33 +01:00 committed by GitHub
parent d8f1aad494
commit c77f97c84a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,15 +5,40 @@ on: [push, pull_request]
jobs: jobs:
build: build:
runs-on: windows-latest runs-on: windows-latest
strategy:
matrix:
compiler: [mingw, msvc16]
bits: [32, 64]
include:
- compiler: mingw
bits: 32
CFLAGS: -m32
GENERATOR: "MinGW Makefiles"
- compiler: mingw
bits: 64
CFLAGS: -m64
GENERATOR: "MinGW Makefiles"
- compiler: msvc16
bits: 32
GENERATOR: "Visual Studio 16 2019"
- compiler: msvc16
bits: 64
GENERATOR: "Visual Studio 16 2019 Win64"
steps: steps:
- uses: actions/checkout@master - name: Checkout
uses: actions/checkout@master
- name: Setup Environment - name: Setup Environment
run: | run: |
mkdir build mkdir build
cd build cd build
- name: Setup MSBuild.exe - name: Setup MSBuild.exe
uses: warrenbuckley/Setup-MSBuild@v1 uses: warrenbuckley/Setup-MSBuild@v1
- name: Setup CMake Project - name: Setup CMake Project
run: cmake -G "Visual Studio 16 2019" -DSTATIC=ON -DSHARED=ON -DBUILD_EXAMPLES=ON -DBUILD_GAMES=OFF -DINCLUDE_EVERYTHING=ON ../raylib run: cmake -G $GENERATOR -DSTATIC=ON -DSHARED=ON -DBUILD_EXAMPLES=ON -DBUILD_GAMES=OFF -DINCLUDE_EVERYTHING=ON ../raylib
- name: Build raylib Source & Examples - name: Build raylib Source & Examples
run: cmake --build . --target install run: cmake --build . --target install