raylib/.github/workflows/ci_src_examples_win.yml
Workflow config file is invalid. Please check your config file: Line: 7 Column 5: Failed to match job-factory: Line: 45 Column 7: Failed to match run-step: Line: 45 Column 7: Unknown Property uses Line: 46 Column 11: Unknown Variable Access msvc16 Line: 45 Column 7: Failed to match regular-step: Line: 46 Column 11: Unknown Variable Access msvc16 Line: 7 Column 5: Failed to match workflow-job: Line: 32 Column 5: Unknown Property env Line: 35 Column 5: Unknown Property steps Forgejo Actions YAML Schema validation error
2020-01-10 17:05:38 +01:00

52 lines
1.3 KiB
YAML

name: CI - Source & Examples - Windows
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
strategy:
fail-fast: false
max-parallel: 1
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"
ARCH: "-A Win32"
- compiler: msvc16
bits: 64
GENERATOR: "Visual Studio 16 2019"
ARCH: "-A x64"
env:
CFLAGS: ${{ matrix.CFLAGS }}
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup Environment
run: |
mkdir build
cd build
# Setup MSBuild.exe path if required
- uses: warrenbuckley/Setup-MSBuild@v1
if: matrix.compiler == msvc16
- name: Setup CMake Project
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
- name: Build raylib Source & Examples
run: cmake --build . --target install