Skip to content

Commit f7a60a8

Browse files
committed
GLFW add vcpkg option for Windows
1 parent 0edf5e9 commit f7a60a8

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

github-actions/install-dep-glfw/action.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,21 @@ name: Install GLFW
22
runs:
33
using: "composite"
44
steps:
5-
- name: Install GLFW
5+
- name: Install GLFW (Linux)
66
shell: bash
7+
if: ${{ runner.os == 'Linux' }}
8+
run: sudo apt-get install libglfw3-dev
9+
- name: Install GLFW (Homebrew)
10+
shell: bash
11+
if: ${{ runner.os == 'macOS' }}
12+
run: brew install glfw
13+
- name: Install GLFW (vcpkg)
14+
shell: bash
15+
if: ${{ runner.os == 'Windows' }}
716
run: |
8-
if ${{ toJSON( runner.os == 'Linux' ) }}; then
9-
echo "::group::Install GLFW (via apt-get)"
10-
sudo apt-get install libglfw3-dev
11-
echo "::endgroup::"
12-
elif ${{ toJSON( runner.os == 'macOS' ) }}; then
13-
echo "::group::Install GLFW (via brew)"
14-
brew install glfw
15-
echo "::endgroup::"
16-
fi
17+
vcpkg install glfw3
18+
echo "PKG_CONFIG_PATH=C:/vcpkg/installed/x64-windows/lib/pkgconfig" >> $GITHUB_ENV
19+
- name: Add path (Windows)
20+
shell: powershell
21+
if: ${{ runner.os == 'Windows' }}
22+
run: Add-Content $env:GITHUB_PATH "C:\vcpkg\installed\x64-windows\bin"

0 commit comments

Comments
 (0)