Skip to content

Add MSVC CI

Add MSVC CI #882

Workflow file for this run

name: C/C++ CI
on: [push, pull_request]
jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: apt-update
run: sudo apt-get update -qq
- name: apt get demo-libs
run: sudo apt-get install -y --no-install-recommends liballegro5-dev liballegro-image5-dev liballegro-ttf5-dev libglfw3 libglfw3-dev libglew-dev libsdl2-dev libwayland-dev libx11-dev libxft-dev wayland-protocols
- name: build allegro5
run: make -C demo/allegro5
- name: build glfw_opengl2
run: make -C demo/glfw_opengl2
- name: build glfw_opengl3
run: make -C demo/glfw_opengl3
- name: build glfw_opengl4
run: make -C demo/glfw_opengl4
# - name: build glfw_vulkan
# run: make -C demo/glfw_vulkan
- name: build sdl_opengl2
run: make -C demo/sdl_opengl2
- name: build sdl_opengl3
run: make -C demo/sdl_opengl3
- name: build sdl_opengles2
run: make -C demo/sdl_opengles2
- name: build sdl_renderer
run: make -C demo/sdl_renderer
- name: build sdl_rawfb
run: make -C demo/rawfb/sdl
- name: build wayland_rawfb
run: make -C demo/rawfb/wayland
- name: build x11
run: make -C demo/x11
- name: build x11_opengl2
run: make -C demo/x11_opengl2
- name: build x11_opengl3
run: make -C demo/x11_opengl3
- name: build x11_rawfb
run: make -C demo/rawfb/x11
- name: build x11_xft
run: make -C demo/x11_xft
- name: build example
run: make -C example
build_msvc:
strategy:
matrix:
arch: [x86, x64]
define: ['', '-DINCLUDE_ALL']
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.arch }}
- name: Build gdi
working-directory: demo/gdi
run: ./build.bat ${{ matrix.define }}
- name: Build gdip
working-directory: demo/gdip
run: ./build.bat ${{ matrix.define }}
- name: Build gdi_native_nuklear
working-directory: demo/gdi_native_nuklear
run: ./build.bat ${{ matrix.define }}
- name: Build d3d9
working-directory: demo/d3d9
run: ./build.bat ${{ matrix.define }}
- name: Build d3d11
working-directory: demo/d3d11
run: ./build.bat ${{ matrix.define }}
- name: Build d3d12
working-directory: demo/d3d12
run: ./build.bat ${{ matrix.define }}