summaryrefslogtreecommitdiffhomepage
path: root/.github/workflows/ci_src_examples_win.yml
blob: de355209dee4fb07b1ac5201cf60ed16ece2b01b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: CI - Source & Examples - Windows

on: [push, pull_request]

jobs:
  build:
    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:
    - name: Checkout
      uses: actions/checkout@master

    - name: Setup Environment
      run: | 
        mkdir build
        cd build

    - name: Setup MSBuild.exe
      uses: warrenbuckley/Setup-MSBuild@v1

    - name: Setup CMake Project
      run: cmake -G ${{ matrix.GENERATOR }} -DSTATIC=ON -DSHARED=ON -DBUILD_EXAMPLES=ON -DBUILD_GAMES=OFF -DINCLUDE_EVERYTHING=ON ../raylib

    - name: Build raylib Source & Examples
      run: cmake --build . --target install