-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.