Skip to content

Commit

Permalink
Work on CI VcpkgDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Jan 31, 2024
1 parent 8f62e50 commit 1de307e
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/VcpkgDeps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "VcpkgDeps"

# Test that a default build when using vcpkg

on:
workflow_dispatch:
pull_request:
push:


jobs:
build:
name: Cpp
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
#platform: [windows-latest, macos-latest, ubuntu-latest]
platform: [ubuntu-latest]
# We test only with OpenGL
# rendering_backend: [ OpenGL, Vulkan, Metal, D3D11, D3D12 ]

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Install vcpkg
uses: microsoft/vcpkg@master
with:
useSystemBinaries: true
vcpkgDirectory: ${{ github.workspace }}/vcpkg

- name: Setup interactive tmate session
uses: mxschmitt/action-tmate@v3

# Available rendering bindings:
# opengl3-binding, metal-binding, opengl3-binding, vulkan-binding, dx11-binding, dx12-binding
# We test only opengl3-binding
- name: install requirements via vcpkg
shell: bash
run: |
echo "hello"
vcpkg install "glad[gl-api-43]" stb freetype lunasvg "imgui[opengl3-binding, docking-experimental, glfw-binding, sdl2-binding, freetype, freetype-lunasvg]"
- name: Build and install
shell: bash
run: |
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake -DHELLOIMGUI_USE_SDL_OPENGL3=ON -DHELLOIMGUI_USE_GLFW_OPENGL3=ON -DCMAKE_BUILD_TYPE=Release
cmake --build . -j 3
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1de307e

Please sign in to comment.