File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed
github-actions/install-dep-glfw Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,21 @@ name: Install GLFW
2
2
runs :
3
3
using : " composite"
4
4
steps :
5
- - name : Install GLFW
5
+ - name : Install GLFW (Linux)
6
6
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' }}
7
16
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"
You can’t perform that action at this time.
0 commit comments