Skip to content

Commit 1f9619e

Browse files
committed
GLFW add vcpkg option
1 parent 0edf5e9 commit 1f9619e

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

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

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,24 @@ 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' }}
78
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
9+
echo "::group::Install GLFW (via apt-get)"
10+
sudo apt-get install libglfw3-dev
11+
echo "::endgroup::"
12+
- name: Install GLFW (Homebrew)
13+
shell: bash
14+
if: ${{ runner.os == 'macOS' }}
15+
run: |
16+
echo "::group::Install GLFW (via brew)"
17+
brew install glfw
18+
echo "::endgroup::"
19+
- name: Install GLFW (vcpkg)
20+
shell: bash
21+
if: ${{ runner.os == 'Windows' }}
22+
run: |
23+
echo "::group::Install GLFW (via vcpkg)"
24+
vcpkg install glfw3
25+
echo "::endgroup::"

0 commit comments

Comments
 (0)