File tree 1 file changed +24
-2
lines changed
1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change 22
22
- name : Build OpenPMIx
23
23
run : |
24
24
cd openpmix/master
25
+ # Homebrew doesn't install Libevent's (or libev's) header or
26
+ # library files into a default search location. Shrug. So
27
+ # use pkg-config to get the location and explicitly pass it to
28
+ # configure.
29
+ libevent_cppflags=$(pkg-config libevent --cflags)
30
+ libevent_ldflags=$(pkg-config libevent --libs | perl -pe 's/^.*(-L[^ ]+).*$/\1/')
25
31
./autogen.pl
26
- ./configure --prefix=$RUNNER_TEMP/pmixinstall
32
+ ./configure --prefix=$RUNNER_TEMP/pmixinstall \
33
+ CPPFLAGS=$libevent_cppflags \
34
+ LDFLAGS=$libevent_ldflags
27
35
make -j
28
36
make install
29
37
- name : Git clone PRRTE
37
45
38
46
sphinx=
39
47
if test "${{ matrix.sphinx }}" = sphinx; then
48
+ # The macos Github Action environment gets angry at us if
49
+ # we try to pip install into the global environment. So
50
+ # make a virtual environment and install sphinx into that.
51
+ python -m venv venv
52
+ . ./venv/bin/activate
40
53
pip3 install -r docs/requirements.txt
41
54
sphinx=--enable-sphinx
42
55
fi
48
61
c=../configure
49
62
fi
50
63
51
- $c --prefix=$RUNNER_TEMP/prteinstall --with-pmix=$RUNNER_TEMP/pmixinstall $sphinx
64
+ # Homebrew doesn't install Libevent's (or libev's) header or
65
+ # library files into a default search location. Shrug. So
66
+ # use pkg-config to get the location and explicitly pass it to
67
+ # configure.
68
+ libevent_cppflags=$(pkg-config libevent --cflags)
69
+ libevent_ldflags=$(pkg-config libevent --libs | perl -pe 's/^.*(-L[^ ]+).*$/\1/')
70
+
71
+ $c --prefix=$RUNNER_TEMP/prteinstall --with-pmix=$RUNNER_TEMP/pmixinstall $sphinx \
72
+ CPPFLAGS=$libevent_cppflags \
73
+ LDFLAGS=$libevent_ldflags
52
74
make -j
53
75
make install
54
76
make uninstall
You can’t perform that action at this time.
0 commit comments