File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 25
25
if : ${{ matrix.os == 'macos-latest' }}
26
26
run : |
27
27
brew install ncurses
28
- echo "LDFLAGS=-L/opt/homebrew/opt/ncurses/lib" >> $GITHUB_ENV
29
- echo "CPPFLAGS=-I/opt/homebrew/opt/ncurses/include" >> $GITHUB_ENV
28
+ echo "NCURSES_ROOT=$(brew --prefix ncurses)" >> $GITHUB_ENV
29
+ echo "LDFLAGS=-L$(brew --prefix ncurses)/lib" >> $GITHUB_ENV
30
+ echo "CPPFLAGS=-I$(brew --prefix ncurses)/include" >> $GITHUB_ENV
30
31
31
32
- name : Create Build Environment
32
33
# Some projects don't allow in-source building, so create a separate build directory
41
42
# Note the current convention is to use the -S and -B options here to specify source
42
43
# and build directories, but this is only available with CMake 3.13 and higher.
43
44
# The CMake binaries on the Github Actions machines are (as of this writing) 3.12
44
- run : cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_PREFIX_PATH=/opt/homebrew/opt/ncurses
45
+ run : cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_PREFIX_PATH=$NCURSES_ROOT
45
46
46
47
- name : Build
47
48
working-directory : ${{github.workspace}}/build
You can’t perform that action at this time.
0 commit comments