raylib/.github/workflows/ci_src_examples_win.yml

63 lines
1.7 KiB
YAML
Raw Normal View History

2020-01-09 18:06:17 +03:00
name: CI - Source & Examples - Windows
2020-01-09 19:27:03 +03:00
on: [push, pull_request]
2020-01-09 18:06:17 +03:00
jobs:
build:
runs-on: windows-latest
2020-01-10 17:52:33 +03:00
strategy:
2020-01-10 18:13:41 +03:00
fail-fast: false
2020-01-10 18:09:45 +03:00
max-parallel: 1
2020-01-10 17:52:33 +03:00
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"
2020-01-10 18:37:23 +03:00
ARCH: "-A Win32"
2020-01-10 17:52:33 +03:00
- compiler: msvc16
bits: 64
2020-01-10 18:37:23 +03:00
GENERATOR: "Visual Studio 16 2019"
ARCH: "-A x64"
2020-01-10 18:04:04 +03:00
env:
CFLAGS: ${{ matrix.CFLAGS }}
2020-01-10 17:52:33 +03:00
2020-01-09 18:06:17 +03:00
steps:
2020-01-10 17:52:33 +03:00
- name: Checkout
uses: actions/checkout@master
2020-01-09 18:55:12 +03:00
- name: Setup Environment
2020-01-09 19:06:34 +03:00
run: |
mkdir build
2020-01-09 19:27:03 +03:00
cd build
2020-01-10 19:20:51 +03:00
# Trying to solve an issue with CMake and Chocolatey for MinGW
- run: cmake -E remove c:\ProgramData\chocolatey\bin\cpack.exe
if: matrix.compiler == 'mingw'
2020-01-10 17:52:33 +03:00
2020-01-10 19:05:38 +03:00
# Setup MSBuild.exe path if required
- uses: warrenbuckley/Setup-MSBuild@v1
2020-01-10 19:10:32 +03:00
if: matrix.compiler == 'msvc16'
2020-01-15 20:20:16 +03:00
- name: Build MinGW Project
run: ../raylib/raylib/src/mingw32-make PLATFORM=PLATFORM_DESKTOP
if: matrix.compiler == 'mingw'
2020-01-10 17:52:33 +03:00
2020-01-09 18:50:01 +03:00
- name: Setup CMake Project
2020-01-10 18:37:23 +03:00
run: cmake -G "${{ matrix.GENERATOR }}" ${{ matrix.ARCH }} -DCMAKE_SH="CMAKE_SH-NOTFOUND" -DSTATIC=ON -DSHARED=ON -DBUILD_EXAMPLES=ON -DBUILD_GAMES=OFF -DINCLUDE_EVERYTHING=ON ../raylib
2020-01-15 20:20:16 +03:00
if: matrix.compiler == 'msvc16'
2020-01-09 18:50:01 +03:00
- name: Build raylib Source & Examples
run: cmake --build . --target install
2020-01-15 20:20:16 +03:00
if: matrix.compiler == 'msvc16'